0

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?

JW.
  • 119
  • 4
  • 11

1 Answers1

2

This will require root access to fix the problem, because users without root rights should not be allowed to change critical settings, such as passwords. Otherwise there would be no way to enforce security.

But root can assign access to commands to users and groups using sudo, if that is required.

John Auld
  • 584
  • 2
  • 6