Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] new user can't login
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
florintanasa
n00b
n00b


Joined: 11 Feb 2012
Posts: 5

PostPosted: Sun Jun 23, 2019 2:21 pm    Post subject: [Solved] new user can't login Reply with quote

Hi,
After a fresh install I created a new user.
This new user can not login but root user can login.
Also I can't login using ssh because PAM give me a error.

Any idea?


Last edited by florintanasa on Sun Jun 23, 2019 5:23 pm; edited 1 time in total
Back to top
View user's profile Send private message
tuggbuss
Apprentice
Apprentice


Joined: 20 Mar 2017
Posts: 222

PostPosted: Sun Jun 23, 2019 2:45 pm    Post subject: Reply with quote

What command did you use to create user? Do you have a WM/DE installed yet?
Back to top
View user's profile Send private message
florintanasa
n00b
n00b


Joined: 11 Feb 2012
Posts: 5

PostPosted: Sun Jun 23, 2019 3:38 pm    Post subject: Reply with quote

Hi,
Command used:
Code:

useradd -m -G users,wheel,audio,video,dialout -s /bin/bash florin

and them I set password for user with
Code:

passwd florin


I not have Windows Manager installed or another X application.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 15294

PostPosted: Sun Jun 23, 2019 3:47 pm    Post subject: Reply with quote

How did you try to log in as that user? How did it fail? What errors did the system log when it failed?
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 18434

PostPosted: Sun Jun 23, 2019 4:03 pm    Post subject: Reply with quote

Possibly the wrong password entered or set. Maybe try resetting the password to what you think it should be?

What is the output of the following commands?
"chage -l <usernmae>"
"passwd -S <username>"
"pam_tally2 -u <username>"

In the case of pam_tally2, if the number of failures is greater than 0, it can be reset using the options "-u <username> -r".
_________________
The media sells it and you live the role.
Back to top
View user's profile Send private message
florintanasa
n00b
n00b


Joined: 11 Feb 2012
Posts: 5

PostPosted: Sun Jun 23, 2019 4:22 pm    Post subject: Reply with quote

Hi,
For,
Code:

passwd -S florin

result
Code:

florin P 06/23/2019 0 99999 7 -1

For
Code:

pam_tally2 -u florin

result
17 failures
I reset using
Code:

pam_tally2 -u florin -r

Then I changed password from root user with:
Code:

passwd florin

I enter easy password '12345678'
Then I try to enter from another tty console using Alt+F3
after I enter user and password the answer was
Code:

Login incorect

and
syslog-ng say on tty12
Code:

login[31407]: FAILED LOGIN (1) on '/dev/tty3' FOR 'florin', Authentication failure


So?
Back to top
View user's profile Send private message
tuggbuss
Apprentice
Apprentice


Joined: 20 Mar 2017
Posts: 222

PostPosted: Sun Jun 23, 2019 4:44 pm    Post subject: Reply with quote

Just a sanity check. Can you create another user and try if that succeeds?
Back to top
View user's profile Send private message
florintanasa
n00b
n00b


Joined: 11 Feb 2012
Posts: 5

PostPosted: Sun Jun 23, 2019 5:18 pm    Post subject: [SOLVED] new user can't login Reply with quote

Very strange,
I created a new user and this can login.
So I deleted florin user, I deleted home/florin directory and I created again this user and now can login.
I used gentoo in the past and now I try to return but this error I not have until now.
May be was fixed by
emerge -ev @world
because I try to change profile from 17.0 to 17.1

Thank you, now is ok.
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