1833247 Members
2867 Online
110051 Solutions
New Discussion

user lockout

 
Steve Lewis
Honored Contributor

user lockout

I think my brain must be fried.

My normal user account is locked out of a server. Its in trusted mode.

I tried /usr/lbin/modprpw -k -l but when I login with ssh it still says Permission denied, please try again.

I then tried resetting my password thinking that I must have the wrong one, but it said
You may not use the same password.
Heres the getprpw output:

uid=207, bootpw=NO, audid=60, audflg=1, mintm=-1, maxpwln=-1, exptm=-1, lftm=-1, spwchg=Wed Sep 17 13:33:12 2008, upwchg=-1, acctexp=-1, llog=-1, expwarn=-1, usrpick=DFT, syspnpw=DFT, rstrpw=DFT, nullpw=DFT, admnum=-1, syschpw=DFT, sysltpw=DFT, timeod=-1, slogint=Fri Jun 6 02:00:04 2008, ulogint=-1, sloginy=-1, culogin=-1, uloginy=-1, umaxlntr=-1, alock=NO, lockout=0000000

7 REPLIES 7
Suraj K Sankari
Honored Contributor

Re: user lockout

Hi,

As per your output lockout=0000000 means user is not locked check your passwd and .profile, if possible try to change your passwd.

Suraj
David de Beer
Valued Contributor

Re: user lockout

Probably not the best solution but using sam for these tasks makes life simpler, it usually picks up the problems (which I wasn't able to solve from the command line).
SKR_1
Trusted Contributor

Re: user lockout

Try to reset the password again with below commands.

/usr/lbin/modprpw -k userid (unlock/enable)
/usr/lbin/modprpw -x userid ( reset the password )

Thanks

SKR
Steve Lewis
Honored Contributor

Re: user lockout

Well I tried all your suggestions.
resetting the password lets me log in, only to have to change it again, it then kicks me out immediately to log in again with the new password. When I do that it says permission denied!

Then I tried a brute force approach of copying my file in /tcb/files/auth/l/username to this box, but that hasnt worked either.

I then tried removing the .ssh directory in my home directory. I checked the IPs to ensure I was connecting to the machine I thought I was.
I still can't log in as myself.
Steve Lewis
Honored Contributor

Re: user lockout

btw I'm not using NIS or LDAP or any centralised user management system, just local files.
Steve Lewis
Honored Contributor

Re: user lockout

I just solved my own problem, weeks later.

My password was 9 chars long. It didnt let me in even when I unlocked the account.
Strangely enough it did let me su -. Its just sshd which didnt like the 9 character password.
When I changed the password to something else 9 characters long it still wouldn't let me in.
When I changed it to something 8 characters long it did let me in.

The file /etc/default/security has MIN_PASSWORD_LENGTH=8
but nothing relating to maximum password length.

I think this problem must have been fixed in a patch because it only occurs on old systems.
Steve Lewis
Honored Contributor

Re: user lockout

Solved, had to reduce password length to precisely 8 characters on these old systems.
Appears to be an sshd bug.
Patch, patch...