To modify existing user accounts using the GUI tool, click on the “System Setting” button on the left side of your screen. In the window that opens type “user“. This should find the GUI tool called “User accounts“:
In the window that opens click on the “Unlock” button in the upper right corner. You will need to provide the superuser password.
Next, click on the user you would like to modify. You can modify the user’s account type, language, password and automatic login option:
Modifying users using the usermod command
To modify an existing user the usermod command is used. Using this command you can change the user’s home directory location, login name, default shell, etc. You can lock and unlock a user. This command accepts a number of options:
Here is an example. If we want to change the login name of the user “jwillams” to “jowilliams“, we can use the usermod command with the -l option:
NOTE – one of the most frequent account modifications in Linux is to change a user’s password. You can do this with the passwdprogram. Simply type the sudo passwd USERNAME command. For example, to change the password of the user jwilliams, simply typesudo passwd jwilliams. This will open up the prompt where you can enter the new password.
Post a Comment