I have followed the steps here to remove the password from an Ubuntu account. Now I want to change it all back.
I have already removed the line
david ALL=(ALL) NOPASSWD:ALL
But don't know how to revert this command:
sudo passwd -d `whoami`
Can anyone tell me how? Thanks in advance.
-d
in the command means delete, so there must be a command with-a
? – John Carter Mar 20 '24 at 17:13passwd
? – sudodus Mar 20 '24 at 17:15passwd
worked. Thanks! – John Carter Mar 20 '24 at 18:41