Changing passwords
With the Users and Groups tool, changing passwords is easy. In the preceding section, we discussed how to set a password for a user while creating a new account. To change the password for a user, simply go through the process again by clicking on the text next to Password, and then you type in the new password; that's it!
On the shell, the passwd
command allows a user to change their own password. In fact, a user can even change their own password via the GUI by accessing System Settings and then Account Details, so using a terminal command such as passwd
isn't required. However, the passwd
command can also allow administrators to change the passwords of other users as well.
Although we'll discuss sudo
in more detail later in this chapter, the sudo
command allows you to run a command as an administrator, provided you are a member of the sudo group. If you execute the sudo passwd
command, followed by a username, you can change the password for any user you like (even if...