Advertisement
rockdrilla

Debian's modular sudoers example

Jun 21st, 2015
575
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. # cat /etc/sudoers.d/00_aliases
  2. Cmnd_Alias PING=/bin/*ping*, /sbin/*ping*, /usr/bin/*ping*, /usr/sbin/*ping*
  3. Cmnd_Alias TRACEROUTE=/bin/*traceroute*, /sbin/*traceroute*, /usr/bin/*traceroute*, /usr/sbin/*traceroute*
  4. Cmnd_Alias NMAP=/usr/bin/nmap, /usr/bin/nping, /usr/bin/ncat
  5.  
  6. # cat /etc/sudoers.d/grp_sudo
  7. %sudo ALL=(root) NOPASSWD: PING, TRACEROUTE, NMAP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement