Skip to content

Commit 93e7f28

Browse files
committed
Add the "Adding a user to a group" page.
1 parent 4f7accd commit 93e7f28

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
+++
2+
title = "Adding a user to a group"
3+
+++
4+
5+
To add a user to a group, run `usermod -aG $GROUP $USERNAME`. You can check the current groups the user is in by running `groups` as that user. Do note that the new group will not be visible until and after a log-out and log-in. You can emulate what that would look like by entering a new login shell (e.g., via `su -l $USERNAME` or `sudo -i -u $USERNAME`), and then running `groups`.

0 commit comments

Comments
 (0)