Thursday, September 28, 2006

I messed up with /etc/profile: How do I edit it?

The situation: I thought that running a daemon during startup is just as same as setting up the classpath for JDK. Well, I was wrong!!! I am so stupid tu add the mysqld (command to start mysql daemon) in a line of /etc/profile. The results? I can log in to my account (Worse, it is the root account), thus it stucks during loading and I cannot do anything. I need to get the /etc/profile edited.

The Problem: How do I edit /etc/profile, since I do not have the right permission to edit it under normal user account?

The Solution: I booted into Kanotix Live CD, and mount the linux partition containing "corrupted" /etc/profile. And it is editable from there. Thank you Kanotix Live CD, you save my day. =)

0 Comments:

Post a Comment

<< Home