4 ms·
sudo passwd Does that change the password for the current user without authentication, or does it change the password for root without authentication? I think
by thomastjeffery 9y ago
sudo passwd
Does that change the password for the current user without authentication, or does it change the password for root without authentication?
I think it would be best to recommend an unambiguous
sudo passwd root
- LeoPanthera 9y ago"sudo foo" with no other arguments runs "foo" as root. "passwd" with no other arguments changes the password of the user it is running as. "sudo passwd" unambiguously changes the password of root.