A colleague has just resigned. And his account is being used as a build account on our Ubuntu 16.04.6 LTS.
Is there any way to reset his password without knowing his current password? I have tried sudo passwd $HIS_USER but it asks for current his current password (not mine).
And
- The Ubuntu is using LDAP authentication
- I can't reboot the server into GRUB because I'm working remotely
1 Answer
login as root or type sudo su. Then you can set a new password for user with passwd [user].
Furthermore you could copy any other encrypted password from /etc/shaddow to this user.
1