m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Chrzanowski <m@m-chrzan.xyz>2022-12-21 01:13:00 +0100
committerMarcin Chrzanowski <m@m-chrzan.xyz>2022-12-21 01:13:00 +0100
commitbd7260bf4f1ddafa37abcba6a8b88ce6a23aad26 (patch)
tree1257a9e60404153436028783d4f32862dac61b11
parentaf9caca6271a1bd768b10418bd75816b4cf6b5c3 (diff)
Add Linux user management
-rw-r--r--user-management.md12
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