Last active
September 28, 2016 09:27
-
-
Save dungmanh88/6153bbfa623528e49d8b7f4b084ebc57 to your computer and use it in GitHub Desktop.
Create sudo user with passwordless
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
useradd test | |
groupadd sudo_passwdless | |
gpasswd -a test sudo_passwdless | |
groups test | |
test : test sudo_passwdless | |
vi /etc/sudoers | |
%sudo_passwdless ALL=(ALL) NOPASSWD: ALL | |
passwd -l test | |
su - test | |
[test@network ~]$ sudo ls |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
remove user:
userdel -r test