Created
January 19, 2021 01:37
-
-
Save daubac402/0d7e93fb09cc8338c34aef5d92d047a3 to your computer and use it in GitHub Desktop.
Add an user to sudoers list (no password required)
This file contains hidden or 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
# Let’s say you want to allow the user to run sudo commands without being asked for a password | |
# Login as root | |
$ su | |
# Edit /etc/sudoers | |
$ visudo | |
# Add this line to the last, with username is the username that you want to add to sudoers, then save (:wq) | |
username ALL=(ALL) NOPASSWD:ALL | |
$ exit | |
#then test with | |
$ sudo su |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment