Last active
December 13, 2019 03:49
-
-
Save NguyenTrungTin/f0b13df6d01436f2b2647d5ca1318b53 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Linux add new user | |
```bash | |
sudo adduser username | |
``` | |
Add the new user to `sudo` group | |
``` | |
sudo usermod -aG sudo username | |
``` | |
Add the new user to `adm` group (read logs) | |
``` | |
sudo usermod -aG adm username | |
``` | |
Test `sudo` access | |
```bash | |
sudo su - username | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment