m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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