LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   if we change "root" to something else, how do we change it back? (https://www.linuxquestions.org/questions/linux-newbie-8/if-we-change-root-to-something-else-how-do-we-change-it-back-725901/)

nehapawar 05-14-2009 05:54 AM

if we change "root" to something else, how do we change it back?
 
accidently in /etc/passwd, i changed root to oot...
how do i change it back?

syg00 05-14-2009 05:58 AM

LiveCD

rosv 05-14-2009 06:14 AM

Quote:

Originally Posted by nehapawar (Post 3540346)
accidently in /etc/passwd, i changed root to oot...
how do i change it back?

Perhaps you linux distro has a rescue option in the boot menu? If that's the case, boot into it and lauch an editor to edit your /etc/passwd file.

nehapawar 05-14-2009 06:19 AM

there is a recovery option in the boot menu...
how do we proceed?

nehapawar 05-14-2009 06:25 AM

in boot menu, we wrote "single" on the next line, using grub edit ...
after that the normal boot started with no change in the problem...

shpenat 05-14-2009 08:46 AM

If you have LiveCD or rescueCD from your distributions, use that one. There is also init= boot parameter hack, but I would use it only as last option.


All times are GMT -5. The time now is 11:00 PM.