blob: 09d5d15b7baf1c325432ad100c309529fe2607d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# Managing Linux users
## Adding a user
useradd [-m|--create-home] [-G|--groups <group,...>] -s <shell> <username>
passwd <username>
# as root, to add to sudoers
visudo
## Adding user to a group
gpasswd -a user group
## Listing users' groups
getent group
|