LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 09-25-2007, 12:50 PM   #1
Kdships
LQ Newbie
 
Registered: Sep 2007
Posts: 8

Rep: Reputation: 0
"URGENT" user root does not exist


Guys please i really need help on this. It's my server we're talking about here.

After using this for about 36hours I get a funny username or password is incorrect. Then I tried my other user account which is not the root and that worked. So, I went to the shell and typed su and what I get is this weired "user root does not exist" message. What could be the problem and what might have caused this because this is the second time this is happening to me. The last time I had to reinstall. i don't want to do that this time. Any help will be greatly appreciated.

Last edited by Kdships; 09-25-2007 at 12:55 PM.
 
Old 09-25-2007, 01:11 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, Lubuntu, FreeBSD
Posts: 3,930
Blog Entries: 5

Rep: Reputation: Disabled
What does grep ':0:' /etc/passwd show you?
 
Old 09-25-2007, 01:16 PM   #3
Kdships
LQ Newbie
 
Registered: Sep 2007
Posts: 8

Original Poster
Rep: Reputation: 0
root::0:0:root:/:/bin/bash
 
Old 09-25-2007, 01:22 PM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, Lubuntu, FreeBSD
Posts: 3,930
Blog Entries: 5

Rep: Reputation: Disabled
The entry is a little strange in that, presuming your box uses a shadow file, there is normally a * in the second field. Also, it's odd that root's home directory is set to / rather than /root. What sort of Linux distro / version are you running?

On the chance that the former is the problem, make a backup of /etc/passwd and then modify the entry to look like:
Code:
root:*:0:0:root:/:/bin/bash
Then try to su again.
 
Old 09-25-2007, 01:28 PM   #5
Kdships
LQ Newbie
 
Registered: Sep 2007
Posts: 8

Original Poster
Rep: Reputation: 0
I run Fedora 7. how do i backup from here?
 
Old 09-25-2007, 01:52 PM   #6
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, Lubuntu, FreeBSD
Posts: 3,930
Blog Entries: 5

Rep: Reputation: Disabled
cp /etc/passwd /etc/passwd.bak

Then use your favorite editor to edit/save /etc/passwd.

edit: Actually this isn't going to work. If you can't become root, you can't edit /etc/passwd.

You're going to need to boot to single-user mode and then perform this operation. Better still, from single-user mode just set root's password and hopefully the passwd program will be intelligent enough to correct the situation.

Last edited by anomie; 09-25-2007 at 01:55 PM.
 
Old 09-25-2007, 02:17 PM   #7
Kdships
LQ Newbie
 
Registered: Sep 2007
Posts: 8

Original Poster
Rep: Reputation: 0
Guess what guys....I ran the update with fedora DVD and the root login now works but the seems to be something wrong with the interface. All the links to program ad everyother thing is gone. All i see now is an empty screen and panel with the raising high parachutes. nothing else.

I also noticed some unusual sound when I log on to roots GUI

Last edited by Kdships; 09-25-2007 at 02:18 PM.
 
Old 09-26-2007, 07:52 PM   #8
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 66
Moved: This thread is more suitable in Linux - Distribution -> Fedora and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 09-27-2007, 09:54 AM   #9
wmakowski
Member
 
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 18, 19, RHL 5.2
Posts: 546

Rep: Reputation: 43
The correct entry in /etc/passwd on a Fedora 7 box should be...
Code:
root:x:0:0:root:/root:/bin/bash
Specifying / instead of /root loses all the settings in the root users default directory. This is why you lost all your links. By the way it is not advisable to login as root. You should su to root or use sudo from your regular user when you need root access.

It is difficult to determine the original cause of this problem without knowing what kind of maintenance is happening on your system. Does anyone else have root access to the system? If not, retrace your steps to determine when it happened and the possible causes. Otherwise talk it over with anyone else that has access to determine the root cause so to speak.

Bill
 
Old 09-28-2007, 09:36 AM   #10
Kdships
LQ Newbie
 
Registered: Sep 2007
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks guys. My fedora is back and kicking!
 
  


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
what can i do with this promt"user machbuild does not exist - using root" wucheng Linux - Newbie 2 01-17-2011 07:41 AM
newbie question: whats the difference between "su root", "su" and "su -&quo mojarron Slackware 9 12-07-2009 04:08 PM
Root can log on, user account can't. "Error in service module" Charlie Spencer Linux - Newbie 3 09-13-2006 01:35 PM
"su root" fails when I connect with normal user thru SSH AlinFaur Linux - Security 5 02-22-2006 11:26 PM
Postgresql error FATAL: user "root" does not exist" cgetty Ubuntu 4 06-21-2005 02:11 PM


All times are GMT -5. The time now is 03:09 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration