Please help how I can restrict using sudo only from one host. For example I try next:
Code: Select all
# User privilege specification
ruser rhost1,rhost2=/usr/sbin/postmap, /usr/bin/chcon, /usr/bin/rm
Code: Select all
# User privilege specification
ruser rhost1,rhost2=/usr/sbin/postmap, /usr/bin/chcon, /usr/bin/rm
Code: Select all
Host_Alias MAIL = rhost1.company.com, rhost2.company.com
Cmnd_Alias PMAP = /usr/sbin/postmap
ruser MAIL=(ALL) PMAP
Thanks, but (ALL) in this config for what? What is it mean?TrevorH wrote:Something like this
Code: Select all
Host_Alias MAIL = rhost1.company.com, rhost2.company.com Cmnd_Alias PMAP = /usr/sbin/postmap ruser MAIL=(ALL) PMAP