Abstract


  • Person authorised to use the system

Linux User


who
  • Obtain UID of a user and User Group information that the user is in
id <USER_NAME>
  • List All Users in the system
cut -d: -f1 /etc/passwd
  • Create user with administrative privileges
sudo useradd -m -G wheel <USERNAME>
sudo passwd johndoe # Set the password for new user
 
sudo usermod -aG <GROUPNAME> <USERNAME> # Add new user to other groups
  • Delete user
sudo userdel <USERNAME>

Terminologies


UID

  • Stands for User IDentification
  • A number that is assigned to each User by System Administrator
  • One is assigned to Superuser (UNIX)

User Group

  • Assigned a Group IDentification (GID)
  • User can be members of the group