Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 23rd November 2007, 07:48 AM
ajeetraina Offline
Registered User
 
Join Date: Sep 2007
Posts: 93
root unable to login

This morning I tried to login as root in fedora machine it throws:

sh-3.00 # passwd root
passwd:unknown user name 'root'

I checked the /etc/passwd file and it says:

root:x:500:500:/home/root:/bin/bash

I tried to change 500 to 0 and again tried.
But to my surprise,it threw the same error:
passwd:unknown user name 'root'

and the file /etc/passwd get changed to root:x:500:500:/home/root:/bin/bash again


Also ,I checked the root directory..its there?
If I run #useradd root
it says: useradd:unknown gid 100
No group "mail" exists,creating mail spool with mode 0600

Can anyone help me whats going on here.???????plzzz
I am stucked !!!!!
Reply With Quote
  #2  
Old 23rd November 2007, 08:39 AM
kurzer Offline
Registered User
 
Join Date: Jun 2004
Location: Ulm, Germany
Age: 31
Posts: 129
I don't know what you did but a normal line for root in the /etc/passwd looks like this:
root:x:0:0:root:/root:/bin/bash

The user 'root' is created automatically at the installation, and it's not possible to change the root password as normal user. Only root can change passwords of other users.
Reply With Quote
  #3  
Old 23rd November 2007, 09:21 AM
ajeetraina Offline
Registered User
 
Join Date: Sep 2007
Posts: 93
Unable to login as root

No maan !!!
I was just trying to mount NFS users for the fedora Directory Server and that happened.
I know that root is numbered 0 and there is no other user with that id but wonder how can I install becoz thats the development machine..Plzz help???
Reply With Quote
  #4  
Old 23rd November 2007, 09:25 AM
ajeetraina Offline
Registered User
 
Join Date: Sep 2007
Posts: 93
[QUOTE=ajeetraina]No maan !!!
I was just trying to mount NFS users for the fedora Directory Server and that happened.
I saw the /etc/passwd file and noticed that "0" being assigned to lp groupid,halt groupid and few more ..whats that?Any idea.
Reply With Quote
  #5  
Old 23rd November 2007, 09:27 AM
ajeetraina Offline
Registered User
 
Join Date: Sep 2007
Posts: 93
[QUOTE=ajeetraina][QUOTE=ajeetraina]No maan !!!
I was just trying to mount NFS users for the fedora Directory Server and that happened.
I could see "0" in front of lp and shutdown groupid which tells that the root ahs rights for that? Anydiea?
Reply With Quote
  #6  
Old 23rd November 2007, 09:39 AM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,346
Quote:
I was just trying to mount NFS users for the fedora Directory Server and
Sounds like directory server is *working*.
Reply With Quote
  #7  
Old 23rd November 2007, 09:53 AM
away Offline
Registered User
 
Join Date: Nov 2007
Posts: 10
I had the same problem when I played with suid/sgid
after a bit of browsing through /etc I found passwd.OLD along with passwd file, which I overwrote above /etc/passwd

p.s sorry if the reply is uncompetent as i am quite a newbie in linux
Reply With Quote
  #8  
Old 23rd November 2007, 09:45 AM
ajeetraina Offline
Registered User
 
Join Date: Sep 2007
Posts: 93
If the directory server is working but I am in runlevel 1 and in that level no eth0 card is active..how can it affect the local machien at runlevel 1???
Reply With Quote
  #9  
Old 23rd November 2007, 10:38 AM
ajeetraina Offline
Registered User
 
Join Date: Sep 2007
Posts: 93
I saw the file called passwd.OLD and mv it to passwd but the error remains.
Reply With Quote
  #10  
Old 23rd November 2007, 10:53 AM
away Offline
Registered User
 
Join Date: Nov 2007
Posts: 10
Have you also overwritten /etc/shadow.OLD file over /etc/shadow? It must be also present in the directory
for me that solved the problem
Reply With Quote
  #11  
Old 26th November 2007, 05:03 AM
ajeetraina Offline
Registered User
 
Join Date: Sep 2007
Posts: 93
No man !!! Nothing ..ok let me know how can I get out of this problem without disturbing the critical project going on in this machine.I mean can I insert the CD and go to rescue mode.OR any alternative ?
Reply With Quote
Reply

Tags
login, root, unable

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to login as root mohan.10 Using Fedora 1 10th March 2009 03:18 PM
Unable to login as Root in GUI Mode Fedora 10.0 ROHN_IN Using Fedora 11 20th February 2009 02:47 AM
Unable to login as root Jlen Using Fedora 46 27th November 2008 04:28 AM
Unable to login to root thru terminal window? bucket Using Fedora 0 12th October 2005 05:44 PM
Unable to login as user only root (noob mode) AzzX Using Fedora 2 1st June 2005 11:31 PM


Current GMT-time: 07:15 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat