Skip to content

Commit

Permalink
Add newgrp tip to usermod cheat sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikhl committed Mar 13, 2024
1 parent 9175580 commit 8715487
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions usermod.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,12 @@ Part of shadow-utils. Other relevant commands: `useradd`, `userdel`,
```bash
usermod -a -G <group name> <username>
```


## Use group

Log into the group to avoid having to log out/in.

```bash
newgrp <group name>
```

0 comments on commit 8715487

Please sign in to comment.