Skip to content

Modifying Users

Terminal window
passwd

Run the following as root:

Terminal window
passwd username

Run the following as root:

Terminal window
useradd username

Run the following as root:

Terminal window
userdel username

Run the following as root:

Terminal window
userdel -r username
Terminal window
groups

More detailed information about user and group numerical IDs can be found with the id command.

Terminal window
groups username

More detailed information about user and group numerical IDs can be found with id username.

|Parameter|Details |---|---|---|---|---|---|---|---|---|--- |username|The name of the user. Do not use capital letters, do not use dots, do not end it in dash, it must not include colons, no special characters. Cannot start with a number.

  • You cannot remove a logged in user
  • To modify any user but your own, you need root privileges