QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
'passwd' hanging after changing password |
Ref. No. |
QNX.000009707 |
Category(ies) |
Utilities, Network, Configuration |
Issue |
We are having a problem with 'passwd' hanging. We run the program and enter the old and new passwords after which 'passwd' just hangs. We ran passwd 5 times in a row (changing passwords for user and system accounts) before this showed up. Since then we have not been able to change a password. Is this a bug?
|
Solution |
If there exists a file /etc/.pwlock, remove it. A 'passwd' must have crashed on the system leaving this file behind. The 'passwd' utility uses this for locking, and if one exists, it will wait for it to be cleared before making changes and exiting. Basically, 'passwd' uses the file as a semiphore. |
|