Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
root passwd problem again
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
fei
n00b
n00b


Joined: 21 Apr 2004
Posts: 6

PostPosted: Wed Apr 21, 2004 1:55 pm    Post subject: root passwd problem again Reply with quote

:(
I just installed gentoo from a livecd 2004.0. I got no problem while installing. But when reboot the machine into my installed gentoo, I coundn't login as root. I tried to change the root passwd by booting from the livecd several times. I have search the forum, there are alreay some people asked the same question. I follow the instructions, but still not working. Can some one please help?

the commads I used:

mount /dev/sda2 /mnt/gentoo
mount proc none /mnt/gentoo/proc
chroot /mnt/gentoo /bin/bash
env-updates
source /etc/profile
passwd
Back to top
View user's profile Send private message
chtof
n00b
n00b


Joined: 29 Aug 2003
Posts: 62
Location: France

PostPosted: Wed Apr 21, 2004 5:08 pm    Post subject: Reply with quote

Hi !

It's maybe a problem about your keyboard configuration, that is to say a difference between azerty and qwerty keyboards ?

Chtof
Back to top
View user's profile Send private message
YopWongSapn
l33t
l33t


Joined: 26 Jan 2004
Posts: 627

PostPosted: Wed Apr 21, 2004 5:51 pm    Post subject: Reply with quote

This may or may not work, and you may have already tried it, but see if
Code:
# passwd root
works instead of just passwd. This has happened to me in the past...specifying root fixed it for me.
_________________
Gentoo...it's like wiping your ass with silk. Or sandpaper.
Back to top
View user's profile Send private message
kopfsalat
Apprentice
Apprentice


Joined: 01 Dec 2003
Posts: 181
Location: Cologne, Germany

PostPosted: Wed Apr 21, 2004 6:54 pm    Post subject: Reply with quote

In /etc/passwd change

Code:
root:x:0:0:root:/root:/bin/bash


to

Code:
root::0:0:root:/root:/bin/bash


(remove the "x")

You can now login as root without questions asked. Use passwd and insert the "x" back again.
Back to top
View user's profile Send private message
fei
n00b
n00b


Joined: 21 Apr 2004
Posts: 6

PostPosted: Thu Apr 22, 2004 12:51 am    Post subject: Re: Reply with quote

Just read the forum FAQ and Gentoo FAQ. I found that I need to change the root to the wheel group in order to let the root have the privileged access. the <<Gentoo Handbook>> didn't say anything about this. I think it is quite confusing for users who are doing installation for the first time.
Back to top
View user's profile Send private message
Rainmaker
Veteran
Veteran


Joined: 12 Feb 2004
Posts: 1650
Location: /home/NL/ehv/

PostPosted: Thu Apr 22, 2004 2:02 am    Post subject: Re: Reply with quote

fei wrote:
Just read the forum FAQ and Gentoo FAQ. I found that I need to change the root to the wheel group in order to let the root have the privileged access. the <<Gentoo Handbook>> didn't say anything about this. I think it is quite confusing for users who are doing installation for the first time.


Ehhhh, no

If you want users to be able to "su" TO root, you need to add them to the wheel group. Root should automaticly have all permissions neccesery.
Back to top
View user's profile Send private message
fei
n00b
n00b


Joined: 21 Apr 2004
Posts: 6

PostPosted: Thu Apr 22, 2004 3:44 am    Post subject: Re: Reply with quote

I just CAN NOT use root to login, even if I changed the /etc/passwd file for the root to remove the "x", like root::0:0:root:/root:/bin/bash. But I can use a common user in group wheel to su - as root. I don't know if Gentoo is defined like this or something wrong with my installation?
Back to top
View user's profile Send private message
Rainmaker
Veteran
Veteran


Joined: 12 Feb 2004
Posts: 1650
Location: /home/NL/ehv/

PostPosted: Thu Apr 22, 2004 3:53 am    Post subject: Reply with quote

could be that "login" checks to see if the user has a password, otherwise disallowing login.

Just su from a normal user then...

If all else fails, pass the option "single" to your kernel on bootup, and enter no root password when asked.

You can also remove the hash from /etc/shadow, to set your root passwd to blank
Back to top
View user's profile Send private message
Cosmin
Guru
Guru


Joined: 18 Dec 2003
Posts: 447
Location: Bucharest, Romania

PostPosted: Thu Apr 22, 2004 7:46 am    Post subject: Reply with quote

Well, well. You can su from a regular user, so your root password is ok. You should look to login restrictions applied to root. Some configurations don't allow root console login. I don't remember the exact files, but you should search for "root console login".
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Thu Apr 22, 2004 8:41 pm    Post subject: Reply with quote

/etc/securetty is one location that can affect where root can login from.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing 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