View previous topic :: View next topic |
Author |
Message |
fei n00b
Joined: 21 Apr 2004 Posts: 6
|
Posted: Wed Apr 21, 2004 1:55 pm Post subject: root passwd problem again |
|
|
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 |
|
|
chtof n00b
Joined: 29 Aug 2003 Posts: 62 Location: France
|
Posted: Wed Apr 21, 2004 5:08 pm Post subject: |
|
|
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 |
|
|
YopWongSapn l33t
Joined: 26 Jan 2004 Posts: 627
|
Posted: Wed Apr 21, 2004 5:51 pm Post subject: |
|
|
This may or may not work, and you may have already tried it, but see if 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 |
|
|
kopfsalat Apprentice
Joined: 01 Dec 2003 Posts: 181 Location: Cologne, Germany
|
Posted: Wed Apr 21, 2004 6:54 pm Post subject: |
|
|
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 |
|
|
fei n00b
Joined: 21 Apr 2004 Posts: 6
|
Posted: Thu Apr 22, 2004 12:51 am Post subject: Re: |
|
|
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 |
|
|
Rainmaker Veteran
Joined: 12 Feb 2004 Posts: 1650 Location: /home/NL/ehv/
|
Posted: Thu Apr 22, 2004 2:02 am Post subject: Re: |
|
|
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 |
|
|
fei n00b
Joined: 21 Apr 2004 Posts: 6
|
Posted: Thu Apr 22, 2004 3:44 am Post subject: Re: |
|
|
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 |
|
|
Rainmaker Veteran
Joined: 12 Feb 2004 Posts: 1650 Location: /home/NL/ehv/
|
Posted: Thu Apr 22, 2004 3:53 am Post subject: |
|
|
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 |
|
|
Cosmin Guru
Joined: 18 Dec 2003 Posts: 447 Location: Bucharest, Romania
|
Posted: Thu Apr 22, 2004 7:46 am Post subject: |
|
|
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 |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Thu Apr 22, 2004 8:41 pm Post subject: |
|
|
/etc/securetty is one location that can affect where root can login from. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
|