Home arrow The geek's log arrow I messed up with /etc/profile: How do I edit it?
I messed up with /etc/profile: How do I edit it?
Written by Mohd Izuardi Ibrahim   
Thursday, 28 September 2006

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. =)

 

Comments (0)Add Comment

Write comment
quote
bold
italicize
underline
strike
url
image
quote
quote
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley

busy