Skip to main content

user management

create user

  • useradd john

  • set password passwd john

  • create user with root privilages: useradd -ou 0 -g 0 john

    • check if id are set correctly:
      $ grep john /etc/passwd
      john:x:0:0::/home/john:/bin/sh
      
    • add user to root group usermod -a -G root john
  • delete user userdel john