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
sudo passwd $HIS_USER
should ask for your password to authenticate tosudo
, and shouldn't ask for$HIS_USER
's password (unless you're using LDAP or something like that). – muru Mar 05 '21 at 09:58