System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

unable to lock the user account

SOLVED
Go to solution
rajesh73
Super Advisor

unable to lock the user account

unable to lock the user account

$passwd -l kumar
Unexpected failure. Password file unchanged. Recommend running pwck command.
$

kindly find the above error and how to solve to resolve
7 REPLIES
Manix
Honored Contributor

Re: unable to lock the user account

please post cat/etc/passwd | grep -i kumar

is it trusted system , do we have a directory called as /tcb ?

Does this command works ?
/usr/lbin/getprpw useraccount
HP-UX been always lovable - Mani Kalra
rajesh73
Super Advisor

Re: unable to lock the user account

Hi,

kindly find the below output

$more /etc/passwd | grep -i kumar
kumar:*:108:105::/home/anbu:/sbin/sh

getprpw kumar -command working

Thanks,
rajesh73
Super Advisor

Re: unable to lock the user account

sorry ,kindly find the below output

$more /etc/passwd | grep -i kumar
kumar:*:108:105::/home/kumar:/sbin/sh
Manix
Honored Contributor
Solution

Re: unable to lock the user account

Looks like a trusted system.

Try below commands.

/usr/lbin/modprpw -l -m alock=YES kumar
##lock the account of user

/usr/lbin/getprpw -r -m lockout kumar
##checks if accout is locked
0000010 ##a "1" indicates it's locked

Thanks
Manix
HP-UX been always lovable - Mani Kalra
rajesh73
Super Advisor

Re: unable to lock the user account

Thanks monix ,now the account is locked
Manix
Honored Contributor

Re: unable to lock the user account

Your welcome Rajesh as you jumped me over--its "Manix" --))
HP-UX been always lovable - Mani Kalra
madhuchakkaravarthy
Trusted Contributor

Re: unable to lock the user account

hi

plz post the output of pwck and post the output....


regards

MC