HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

Not Able to change password

 
ln_unix
Frequent Advisor

Not Able to change password

Hello All,

Am facing this problem first time and need your suggestions on same.

When I am changig the passwd of user1 , it just does not change and give a message i.e.
"The password or shadow file is locked.
See the lckpwdf(3C) manpage for further details."

Then I have seen man page of lckpwdf and am not able to understood it.

Following are the logs of the same:-

----------------------------------
root@abc:/etc> /sbin/passwd user1
New password:
Re-enter new password:
The password or shadow file is locked.
See the lckpwdf(3C) manpage for further details.
root@abc:/etc>
-----------------------------------

Could any one please suggest me.
What I can do to resolve the issye.

Thanks & Regards,
LN.
4 REPLIES
Mounaam
Trusted Contributor

Re: Not Able to change password

Hi,

search which process own the lock:
# fuser /etc/.pwd.lock
or
# lsof /etc/.pwd.lock

Then, correct the situation or kill it.

Regards,
Mounaam

Re: Not Able to change password

lckpwdf(3C) says that it will fail if /etc/.pwd.lock exists. Check the date of the file and if "old", remove it.
Mounaam
Trusted Contributor

Re: Not Able to change password

Dennis,

I think that lckpwdf/ulckpwdf don't check if the lock file exists but use lockf(2) with that file.
This file should always exist.

Regards and happy new year,
Mounaam

Re: Not Able to change password

>Mounaam: I think that lckpwdf/ulckpwdf use lockf(2) with that file.

Looks like you're right.