diff options
| author | Marcin Chrzanowski <m@m-chrzan.xyz> | 2022-12-21 01:13:00 +0100 | 
|---|---|---|
| committer | Marcin Chrzanowski <m@m-chrzan.xyz> | 2022-12-21 01:13:00 +0100 | 
| commit | bd7260bf4f1ddafa37abcba6a8b88ce6a23aad26 (patch) | |
| tree | 1257a9e60404153436028783d4f32862dac61b11 | |
| parent | af9caca6271a1bd768b10418bd75816b4cf6b5c3 (diff) | |
Add Linux user management
| -rw-r--r-- | user-management.md | 12 | 
1 files changed, 12 insertions, 0 deletions
| diff --git a/user-management.md b/user-management.md new file mode 100644 index 0000000..0f99f1a --- /dev/null +++ b/user-management.md @@ -0,0 +1,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 |