Created
September 10, 2014 16:21
-
-
Save skpy/531a5ec1af233e5986fa to your computer and use it in GitHub Desktop.
sudo.rhel7.txt
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
```shell | |
root@rh7:TESTING:~> getenforce | |
Disabled | |
root@rh7:TESTING:~> ls -lh /etc/sudoers.d/ | |
total 8.0K | |
-r--r----- 1 root root 66 Sep 9 15:21 10_cmm_env | |
-r--r----- 1 root root 41 Sep 10 11:23 10_linuxadmins_all | |
root@rh7:TESTING:~> cat /etc/sudoers.d/10_linuxadmins_all | |
%sys_linuxadmins ALL=(ALL) NOPASSWD: ALL | |
oot@rh7:TESTING:~> getent group sys_linuxadmins | |
sys_linuxadmins:*:1111:smerrill,<redacted> | |
``` | |
My user account, which should have sudo all: | |
```shell | |
smerrill@rh7:TESTING:~> whoami | |
smerrill | |
smerrill@rh7:TESTING:~> id | |
uid=327117572(smerrill) gid=510(web-dev) groups=510(web-dev) | |
smerrill@rh7:TESTING:~> sudo -l | |
[sudo] password for smerrill: | |
Sorry, user smerrill may not run sudo on rh7. | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment