Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
unknown id: root
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
robbie_a
n00b
n00b


Joined: 30 Jul 2002
Posts: 6

PostPosted: Sun Sep 08, 2002 10:29 am    Post subject: unknown id: root Reply with quote

Help please.
I was editing /etc/passwd for a user (not root) to add /bin/bash as shell

Logged out and logged back in, now can not su to root, get
Code:
 unknown id: root

Code:
id root
gives
Code:
id: root: No such user

however;
Code:
id Root

produces
Code:
uid=0(Root) gid=0(root) groups==0(root)

/etc/passwd has Root.... should it be root instead?
Tried logging in under both root and single user mode, neither work.
Can I recover from this or do I have to reinstall?
Back to top
View user's profile Send private message
kirill
Apprentice
Apprentice


Joined: 01 Aug 2002
Posts: 183
Location: Finland

PostPosted: Sun Sep 08, 2002 11:02 am    Post subject: Re: unknown id: root Reply with quote

robbie_a wrote:
Help please.
I was editing /etc/passwd for a user (not root) to add /bin/bash as shell

Logged out and logged back in, now can not su to root, get
Code:
 unknown id: root

Code:
id root
gives
Code:
id: root: No such user

however;
Code:
id Root

produces
Code:
uid=0(Root) gid=0(root) groups==0(root)

/etc/passwd has Root.... should it be root instead?
Tried logging in under both root and single user mode, neither work.
Can I recover from this or do I have to reinstall?

Follow these instructions to "login" into your Gentoo. After that fix /etc/passwd. Here is mine and it works:
Code:
root:x:0:0::/root:/bin/bash

as you can see it's root not Root.

good luck
_________________
--kirill
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sun Sep 08, 2002 4:47 pm    Post subject: Reply with quote

Can you log in as Root instead of root?
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
robbie_a
n00b
n00b


Joined: 30 Jul 2002
Posts: 6

PostPosted: Sat Sep 14, 2002 12:14 am    Post subject: thanks a million Reply with quote

Finally got time off work to try out your suggestion and it worked. Saved me from having to reinstall from scratch.
Root would not login and I was almost certain that Root was not supposed to be capitalized.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum