Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Cant login after install
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
bradx954
n00b
n00b


Joined: 28 Dec 2013
Posts: 9

PostPosted: Sun May 18, 2014 4:30 pm    Post subject: [SOLVED] Cant login after install Reply with quote

this is a really weird issue I installed gentoo set the root password through chroot (using ubuntu as a livecd for install) reboot computer it gets to the gentoo Brad-PC login screen but when I enter login: root password: 1111 it says invalid login.

I tried the following things.

1. added a user brad and set his password as 1111
2. changed the fstab to use /dev/etc instead of uuid because I though that might of been part of the issue.
3. compiled a completely vanilla genkernel kernel to rule out kernel issues.
4. tried passwordless login as specified here http://www.gentoo-wiki.info/TIP_Passwordless_Login with user brad and it resulted in broken / missing bash on console f2.

system specs:
kernel: 3.12.13
cpu: amd phenom ii x 6 1090t
ram: 16gb
gpu: gtx 560ti
drive: sandisk 64gb ssd
layout:
/dev/sda1 : boot 125mb
/dev/sda2 : root 63gb

thanks in advance for the input or even just reading the post this thing is driving me up the wall.


Last edited by bradx954 on Sun May 18, 2014 11:20 pm; edited 1 time in total
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Sun May 18, 2014 6:29 pm    Post subject: Re: Cant login after install Reply with quote

bradx954 wrote:
this is a really weird issue I installed gentoo set the root password through chroot (using ubuntu as a livecd for install) reboot computer it gets to the gentoo Brad-PC login screen but when I enter login: root password: 1111 it says invalid login.

bradx954 ... there is a minimum password length ('minlen') of 8 chars ... so '1111' doesn't meet that criteria.

/etc/pam.d/system-auth
Code:
password required pam_cracklib.so difok=2 minlen=8 dcredit=2 ocredit=2 retry=3

bradx954 wrote:
2. changed the fstab to use /dev/etc instead of uuid because I though that might of been part of the issue.

Not sure I understand what exactly you did here ... do you mean /dev/sda? This shouldn't have any baring on the issue however.

bradx954 wrote:
4. tried passwordless login as specified here http://www.gentoo-wiki.info/TIP_Passwordless_Login with user brad and it resulted in broken / missing bash on console f2.

I didn't read the link but gentoo-wiki is often out of date, besides being an unofficial resource. Anyhow, for passwordless login one can do the following:

/etc/inittab
Code:
c1:12345:respawn:/sbin/agetty --autologin brad --noclear 38400 tty1 linux

best ... khay
Back to top
View user's profile Send private message
bradx954
n00b
n00b


Joined: 28 Dec 2013
Posts: 9

PostPosted: Sun May 18, 2014 7:06 pm    Post subject: Re: Cant login after install Reply with quote

khayyam wrote:
bradx954 wrote:
this is a really weird issue I installed gentoo set the root password through chroot (using ubuntu as a livecd for install) reboot computer it gets to the gentoo Brad-PC login screen but when I enter login: root password: 1111 it says invalid login.

bradx954 ... there is a minimum password length ('minlen') of 8 chars ... so '1111' doesn't meet that criteria.

/etc/pam.d/system-auth
Code:
password required pam_cracklib.so difok=2 minlen=8 dcredit=2 ocredit=2 retry=3

bradx954 wrote:
2. changed the fstab to use /dev/etc instead of uuid because I though that might of been part of the issue.

Not sure I understand what exactly you did here ... do you mean /dev/sda? This shouldn't have any baring on the issue however.

bradx954 wrote:
4. tried passwordless login as specified here http://www.gentoo-wiki.info/TIP_Passwordless_Login with user brad and it resulted in broken / missing bash on console f2.

I didn't read the link but gentoo-wiki is often out of date, besides being an unofficial resource. Anyhow, for passwordless login one can do the following:

/etc/inittab
Code:
c1:12345:respawn:/sbin/agetty --autologin brad --noclear 38400 tty1 linux

best ... khay


Hi thanks that passwordless login worked however I still cant login the normal way and when I try to update the password I get token manipulation error I belive it may have something to do with the file permissions I did during install is there anyway to fix this or do I have to star over?
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Sun May 18, 2014 7:24 pm    Post subject: Re: Cant login after install Reply with quote

bradx954 wrote:
Hi thanks that passwordless login worked however I still cant login the normal way and when I try to update the password I get token manipulation error I belive it may have something to do with the file permissions I did during install is there anyway to fix this or do I have to star over?

bradx954 ... I couldn't say, I've no idea what "file permissions" you'd changed. If you have some idea of what packages provide the effected files then you can re-merge them and (assuming they are not config files which would require '--noconfmem' in order to have those files in CONFIG_PROTECT replaced) this should overide your permission changes.

best ... khay
Back to top
View user's profile Send private message
bradx954
n00b
n00b


Joined: 28 Dec 2013
Posts: 9

PostPosted: Sun May 18, 2014 11:19 pm    Post subject: Re: Cant login after install Reply with quote

khayyam wrote:
bradx954 wrote:
Hi thanks that passwordless login worked however I still cant login the normal way and when I try to update the password I get token manipulation error I belive it may have something to do with the file permissions I did during install is there anyway to fix this or do I have to star over?

bradx954 ... I couldn't say, I've no idea what "file permissions" you'd changed. If you have some idea of what packages provide the effected files then you can re-merge them and (assuming they are not config files which would require '--noconfmem' in order to have those files in CONFIG_PROTECT replaced) this should overide your permission changes.

best ... khay


Hi thanks for your help turns out I did something stupid like chmod -R 777 /mnt/gentoo while the drive was mounted during install I resolved the issue by reinstalling.
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