Operating System - HP-UX
1833589 Members
4236 Online
110061 Solutions
New Discussion

Re: Cannot unlock user account

 
SOLVED
Go to solution
Sajjad Sahir
Honored Contributor

Re: Cannot unlock user account

also one more clarification if u are removing the same user and adding with same name also it is ok?
Rasheed Tamton
Honored Contributor

Re: Cannot unlock user account

Please post the output of the below command:

logins -x -l klcc
Sajjad Sahir
Honored Contributor

Re: Cannot unlock user account

before u home dir can u put like these ::
Shibin_2
Honored Contributor

Re: Cannot unlock user account

Yes Sajjad, I have removed and recreated the same id, but still can't login with klcc. But I uses the same password (ZAQ!2wsx) to a dummy id (ie. klcc2) it's working fine.
Regards
Shibin
Shibin_2
Honored Contributor

Re: Cannot unlock user account

Rasheed, answer for your querry.

# logins -x -l klcc
klcc 199 ops 302 KL CC
/home/klcc
/usr/bin/ksh
PS 000000 -1 -1 -1
Regards
Shibin
Shibin_2
Honored Contributor

Re: Cannot unlock user account

Hi Sajjad,

I have tried that too, but cannot login. A very strange problem :)
Regards
Shibin
Sajjad Sahir
Honored Contributor

Re: Cannot unlock user account

Dear Shibin
yes it is very strange issue, but we can't dropt it we have to know it how this is happening ?the last thing from my side is u have to move u /etc/default/security file to some where else and reboot the system, i think it will solve the issue.

Sajjad
Rasheed Tamton
Honored Contributor

Re: Cannot unlock user account

Can you try without a passwd.

passwd -d klcc

and try login.
Shibin_2
Honored Contributor

Re: Cannot unlock user account

Hi Rasheed,

I tried all these very before, no use at all. Without password too not working.
Regards
Shibin
Jeeshan
Honored Contributor

Re: Cannot unlock user account

turn OFF the expiration of this user

#usermod -e klcc.

BTW, assigning zero points is worthless and getting answer from ppl.Everybody in this site is always spending their very very valuable time to help others. assigning 0 points, you are insulting ppl. i guess you better understand this point.
a warrior never quits
Rasheed Tamton
Honored Contributor

Re: Cannot unlock user account

Is the home dir of the user exists. There is a parameter which controls the login if the home dir is not existing.

ABORT_LOGIN_ON_MISSING_HOMEDIR=1 Exit the login session, if the user's home directory does not exist

or

check whether do you have a /etc/nologin file
Shibin_2
Honored Contributor

Re: Cannot unlock user account

-e doesn't work, since it need security package, which is not installed.

Btw, point is for the correct answer or answer that helps in somewhat level to resolve the issue. The suggestions that are not helping at all, can't give any points.
Regards
Shibin
Shibin_2
Honored Contributor

Re: Cannot unlock user account

User's home directory exists and there is no /etc/nologin exists.
Regards
Shibin
Bill Hassell
Honored Contributor

Re: Cannot unlock user account

Your problem is likely related to PWplus. This means that the passwd program isn't the standard HP version. You can (as root) manually edit the passwd file and remove everything between the first two colons:

klcc::199:302:KL CC :/home/klcc:/usr/bin/ksh

This will allow the user to login without a password. Then run passwd and choose a simple password such as abcd1234. And login again. If it fails, you'll have to get a newer version of PWplus or remove it completely. The shell never validates a login -- this is done long before starting the user shell. Also, we are all assuming when you say: "can't login" you mean that there is a message that the login is incorrect. There are very different error messages for permission, wrong programs, etc.


Bill Hassell, sysadmin
jeff_hmk
New Member
Solution

Re: Cannot unlock user account

Just remove the /etc/.pwd.tally.d/k/klcc will solve the problem

Regards
Jeff
SUDHAKAR_18
Trusted Contributor

Re: Cannot unlock user account

Hi,

Login as root,then use su - username.
Try this and revert.
Shibin_2
Honored Contributor

Re: Cannot unlock user account

Bill,

You given some hints and that is correct. PWPlus using some lock files, which is in the location as mentioned by Jeff.

After removing the lock file and changing the password, everything is OK.

Jeff,

You should have to write this very before ;)
Regards
Shibin
Shibin_2
Honored Contributor

Re: Cannot unlock user account

See the message from Jeff, that is correct and absolute.
Regards
Shibin