LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-14-2009, 06:54 AM   #1
nehapawar
LQ Newbie
 
Registered: May 2009
Posts: 22

Rep: Reputation: 15
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?
 
Old 05-14-2009, 06:58 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,054

Rep: Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915
LiveCD
 
Old 05-14-2009, 07:14 AM   #3
rosv
Member
 
Registered: Jul 2008
Distribution: Slackware, ubuntu
Posts: 53

Rep: Reputation: 15
Quote:
Originally Posted by nehapawar View Post
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.
 
Old 05-14-2009, 07:19 AM   #4
nehapawar
LQ Newbie
 
Registered: May 2009
Posts: 22

Original Poster
Rep: Reputation: 15
there is a recovery option in the boot menu...
how do we proceed?
 
Old 05-14-2009, 07:25 AM   #5
nehapawar
LQ Newbie
 
Registered: May 2009
Posts: 22

Original Poster
Rep: Reputation: 15
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...
 
Old 05-14-2009, 09:46 AM   #6
shpenat
Member
 
Registered: Dec 2008
Distribution: LFS
Posts: 95

Rep: Reputation: 21
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
All files/Directories owned by root (unable to change with "chown") KinnowGrower Linux - Desktop 8 10-22-2008 11:18 AM
[SOLVED] Need to recover or change root password. And must run "nano". ShellyCat Linux - Newbie 10 07-14-2007 04:01 PM
Need ACCESS to change files! Every time I try to change a setting,"Permission Denied" Balarabay1 SUSE / openSUSE 2 03-06-2006 10:54 AM
alsamixer settings won't stick, "alsactl restore" as root after song change apax Linux - Software 0 01-01-2005 11:07 AM
Change user name from "root" raysr Linux - Newbie 2 05-23-2004 01:32 AM


All times are GMT -5. The time now is 02:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration