User Account Management Debian 11

From Vista Ridge Cyberpatriot
Revision as of 22:20, 9 November 2023 by 128.254.249.17 (talk) (I added bullet points)
Jump to navigation Jump to search

Basic Commands For User Account Management

  • There is basically no GUI in Debian so you need to use the command line for whatever you're gonna do.
  • The command to add a user is "adduser <username>".
  • The command to remove a user is "sudo userdel <username>".
  • The command to add a group is "sudo addgroup <groupname>".
  • The command to remove a group is "sudo delgroup <groupname>".
  • The command to add a user to a group is "sudo usermod -aG <groupname> <username>".
  • The command to remove a user from a group "sudo gpasswd -d <username> <groupname>".