Difference between revisions of "User Account Management Debian 11"

From Vista Ridge Cyberpatriot
Jump to navigation Jump to search
(Created page with "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 remov...")
(No difference)

Revision as of 22:14, 9 November 2023

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>".