Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
user expired - problems resetting
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
zum
n00b
n00b


Joined: 28 Dec 2005
Posts: 7
Location: London, New Zealand

PostPosted: Wed Dec 28, 2005 10:19 am    Post subject: user expired - problems resetting Reply with quote

soz a n00b; but trying :P
whiles back installed and and setup server and added some accounts

issue is one of those accounts has expired and I'm having problems unlocking it

thought/tried (for user George)

1/ >user -e 2006-02-28 george
- but tells me user already exists

2/ >passwd -u george
- but does seemed to have cut the mastard

help appreciated
_________________
Zum|Qubenet


Last edited by zum on Fri Dec 30, 2005 5:44 pm; edited 1 time in total
Back to top
View user's profile Send private message
dnas
n00b
n00b


Joined: 26 Jun 2004
Posts: 35
Location: Belgium

PostPosted: Wed Dec 28, 2005 11:01 am    Post subject: Reply with quote

zum, normally when you do

Code:
passwd -S USERNAME


You'll get the status of the account when there is an L in it it's indeed locked.

unlocking is normally with these commands:

Code:

passwd -u USERNAME


If you check the status of the useraccount again with the (-S) option the L normally must been changed into a P

grtz
_________________
All Information Should Be Free
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Wed Dec 28, 2005 4:48 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Other Things Gentoo.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
zum
n00b
n00b


Joined: 28 Dec 2005
Posts: 7
Location: London, New Zealand

PostPosted: Thu Dec 29, 2005 11:00 am    Post subject: Reply with quote

seems the account has expired (user = george)

> web02 ~ # passwd -S george
> george P 12/28/2005 0 99999 7 -1


tried

> web02 ~ # passwd -u george
> Password changed.
> web02 ~ # passwd -S george
> george P 12/28/2005 0 99999 7 -1


but still no joy...
_________________
Zum|Qubenet
Back to top
View user's profile Send private message
zum
n00b
n00b


Joined: 28 Dec 2005
Posts: 7
Location: London, New Zealand

PostPosted: Thu Dec 29, 2005 4:13 pm    Post subject: Reply with quote

surely its just me being a nub

any bright suggestions?

really need to get this sorted
_________________
Zum|Qubenet
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20589

PostPosted: Thu Dec 29, 2005 8:19 pm    Post subject: Reply with quote

Moved from Other Things Gentoo
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
zum
n00b
n00b


Joined: 28 Dec 2005
Posts: 7
Location: London, New Zealand

PostPosted: Fri Dec 30, 2005 10:27 am    Post subject: Reply with quote

help please

very nice of the mediators to keep moving my post around

but really I'd rather has some help :cry:
_________________
Zum|Qubenet
Back to top
View user's profile Send private message
zeuz
Tux's lil' helper
Tux's lil' helper


Joined: 26 May 2004
Posts: 140
Location: Sweden

PostPosted: Fri Dec 30, 2005 10:28 am    Post subject: Reply with quote

I'm having the same problem as you, both root and my user has "expired", but I can still use them. crontab doesn't work though.
Back to top
View user's profile Send private message
zum
n00b
n00b


Joined: 28 Dec 2005
Posts: 7
Location: London, New Zealand

PostPosted: Fri Dec 30, 2005 1:47 pm    Post subject: Reply with quote

glad its not only me then
would have though it was quiet a simple/common problem and there would be somewhere out with the knowledge to be able to set us straight...
but hey there I go trying to think again
_________________
Zum|Qubenet
Back to top
View user's profile Send private message
humbletech99
Veteran
Veteran


Joined: 26 May 2005
Posts: 1229
Location: London

PostPosted: Fri Dec 30, 2005 2:55 pm    Post subject: Reply with quote

It would seem to indicate that you should be able to log in with this account.

According to the info given, the account was not locked, nor would it ever be. It also has a usable password according to the output.

If you can't log in, then do as root:

Code:
passwd george


then when prompted, enter a new password, press enter and then type it in again to confirm the password.

then exit and try to log in at a console with user george and password newpassword.

Let me know how it goes.
Back to top
View user's profile Send private message
zum
n00b
n00b


Joined: 28 Dec 2005
Posts: 7
Location: London, New Zealand

PostPosted: Fri Dec 30, 2005 5:43 pm    Post subject: Reply with quote

thanks for the advise
it however has not helped
changing the users pass has not allowed them to reaccess the server
_________________
Zum|Qubenet
Back to top
View user's profile Send private message
humbletech99
Veteran
Veteran


Joined: 26 May 2005
Posts: 1229
Location: London

PostPosted: Fri Dec 30, 2005 6:05 pm    Post subject: Reply with quote

Is it only this one user on the machine that cannot log in to this server? Are all the other users ok?

What happens exactly when you try to log in to this server with this user? Does it just exit and go back to the login silently or does it say authentication failed and then go back to the login?

If you have working root access check your logs for error messages regarding the authentication failure.

Post back and I'll help further.
Back to top
View user's profile Send private message
zum
n00b
n00b


Joined: 28 Dec 2005
Posts: 7
Location: London, New Zealand

PostPosted: Fri Dec 30, 2005 6:15 pm    Post subject: Reply with quote

ok sorted...

web02 ~ # chage -l george
Last password change : Dec 30, 2005
Password expires : never
Password inactive : never
Account expires : Dec 11, 2005
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7

web02 ~ # chage -E 2006-01-31 george
chage -E 2006-01-31 george

web02 ~ # chage -l george
Last password change : Dec 30, 2005
Password expires : never
Password inactive : never
Account expires : Jan 31, 2006
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7


had to RTFM :twisted:
_________________
Zum|Qubenet
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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