View previous topic :: View next topic |
Author |
Message |
tomykaira n00b
Joined: 03 Oct 2011 Posts: 2
|
Posted: Mon Oct 03, 2011 5:39 pm Post subject: Cannot login with "Login incorrect" |
|
|
I just installed gentoo from ubuntu.
I rebooted and select gentoo, try to login with the root password set in gentoo install process.
The problem is that I cannot login with the password.
I also created ordinal user in chroot-ed environment, and set password, but I cannot login with it either.
Both passwords are longer than 8 letters, and show no strength warning.
If I login as root with chroot from ubuntu, then , and , I can use the passwords. All go successfully.
Let me know how to debug this issue
The error messages are like:
Authentication failure
Quote: | pam_unix(login:auth): authentication failure; logname=LOGIN uid=0 euid=0 tty=/dev/tty1 ruser= rhost= user=root
FAILED LOGIN (1) on '/dev/tty1' FOR 'root', Authentication failure |
I checked following threads, but nothing helped me.
https://forums.gentoo.org/viewtopic-t-11126.html
https://forums.gentoo.org/viewtopic-p-6531397.html
http://www.linuxquestions.org/questions/linux-general-1/linux-login-incorrect-login-152196/
https://forums.gentoo.org/viewtopic-t-168059-start-0.html |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Mon Oct 03, 2011 5:46 pm Post subject: |
|
|
boot cd,
if ubuntu
Code: | sudo su --
mkdir /mnt/gentoo |
mount the gentoo partitions, enter the chroot, nominally: Code: | mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1="(chroot) $PS1"
passwd | create root password _________________ Defund the FCC. |
|
Back to top |
|
|
tomykaira n00b
Joined: 03 Oct 2011 Posts: 2
|
Posted: Mon Oct 03, 2011 11:44 pm Post subject: |
|
|
Thanks for reply.
I've already followed these steps.
But, I booted with rescue mode, set the same password, and rebooted,then I came to be ale to login!!
I have no idea why the root password is not correctly set from Ubuntu.
Anyway, the problem is solved :-) |
|
Back to top |
|
|
|
|
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
|
|