Listing sudo commands assigned to a group
I want to list the sudo permissions of / commands allowed to be executed by all the members of a given group, but this one is not working:
Code:
# sudo -l -g Production-Support.GG I can however list the sudo commands assigned to a user: Code:
# sudo -l -U Jack |
There is no option available for what you want/need.
-U (in combination with -l) does this for users. The -u and -g options are there to run commands as a different user then root (have a look at the sudo manual page). There is no -G option. |
Code:
sudo grep "%Production-Support.GG" /etc/sudoers* -r Code:
sudo view Code:
Jack ALL=(root) NOPASSWD: NOEXEC: /usr/bin/view |
All times are GMT -5. The time now is 04:39 PM. |