1830350 Members
1890 Online
110001 Solutions
New Discussion

password unlock

 
SOLVED
Go to solution
AA786
Frequent Advisor

password unlock

want to know to find out the user ID is locked or not ?

In SAM its showing active and System is not trusted.but user cannot login and user wants the same username and dont want reset .need unlock only

output of passwd
serni:MGV7nTr7C/8LQ,B/gS:201:20:serni:/home/serni:/usr/bin/sh

8 REPLIES 8
Patrick Wallek
Honored Contributor
Solution

Re: password unlock

In an untrusted system, it is NOT possible to lock a user.

What error message is the user getting when he/she tries to login?

whiteknight
Honored Contributor

Re: password unlock

AA786,

if it is not trusted, i believe the user has been deactivated by system administrator.

You just need to go to SAM-> users and Groups -> Selected the respective user name -> Action -> Reactivate the user

WK

please assign points
Problem never ends, you must know how to fix it
AA786
Frequent Advisor

Re: password unlock

user getting permission denied but i didnt find any deactivation in SAM ?

is there any other way to know ?
James R. Ferguson
Acclaimed Contributor

Re: password unlock

Hi:

Since the encrypted password isn't "*" the account isn't locked.

I suggest that you change the user's password to whatever (s)he wants assuming you can validate the (s)he is who they say they are.

As root you can simply initiate this by doing:

# passwd userid

Afterwards, you can suggest that the user change the password again to something known only to themself.

Regards!

...JRF...
Denver Osborn
Honored Contributor

Re: password unlock

What does "passwd -s serni" show? It's locked if you see "LK". Reset the users passwd if it's locked.

If the account isn't locked and the user can't login, assign them a new passwd and force them to change it at next login.

-denver
AA786
Frequent Advisor

Re: password unlock

see the output.
output of passwd
serni:MGV7nTr7C/8LQ,B/gS:201:20:serni:/home/serni:/usr/bin/sh

[/root/home/root] # passwd -s serni
serni PS 08/23/07 7 91


i dont wanna reset ,just want to unlock ..


James R. Ferguson
Acclaimed Contributor

Re: password unlock

Hi (again):

The account is NOT LOCKED.

You have shown:

[/root/home/root] # passwd -s serni
serni PS 08/23/07 7 91

If you examine the manpages for 'passwd' you would see that this means:

name status mm/dd/yy min max warn

...AND...that "PS" means "pass-worded". IF you saw "LK" then that would mean "locked".

I suggest that your user has forgotten whatever password they applied and that you reset it for them as the root user/administrator of the server. See my first post.

Regards!

...JRF...
AA786
Frequent Advisor

Re: password unlock

thanks