On a RHEL6.4 box, I have a user who hasn't been assigned a password. In the /etc/shadow
file, the password is shown as !!
. This is intentional; that user only logs in using public key authentication.
However, I forgot to make sure that the user's "password" doesn't expire. In fact, I didn't realize that password expiration would affect you if you use public key authentication. Now it has, so whenever he logs in, he's prompted to enter his old password to change it. Since there is no old password, he's stuck.
Is there any way to fix this so the user can log in, without root access?