Can you change root password with sudo?

Tiên Hương

New member
Can you change root password with sudo?
Answer
Usually you’d use this to run stuff as root, though you can run stuff as other users too. So sudo passwd root tells the system to change the root password, and to do it as though you were root.
The root user is allowed to change the root user’s password, so the password changes.
 

Tìm kiếm

Back
Top