m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/user-management.md
blob: 0f99f1ac7780792bf49e01a9748476e976463e63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# 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