[sudo-users] cmnd_alias with many commands and path
Jan Albrecht
jan.albrecht at gmail.com
Wed May 31 09:06:54 EDT 2006
Hi all,
I've to write a vey atomic sudoers file, which looks like this:
cmnd_alias CHMOD = /bin/chmod * /oracle \
/bin/chmod * /sapdb \
/bin/chmod * /usr/sap \
/bin/chmod * /var
cmnd_alias CHGRP= /bin/chgrp * /oracle \
/bin/chgrp * /sapdb \
/bin/chgrp * /usr/sap \
/bin/chgrp * /var
cmnd_alias CHMOD = /bin/chown * /oracle \
/bin/chown * /sapdb \
/bin/chown * /usr/sap \
/bin/chown * /var
This ist just a short snipplet, there are much more directorys and commands.
Is there any easier way to write this?
Maybe like this:
cmnd_alias CMDS = (/bin/chmod, /bin/chgrp, /bin/chown) * /oracle \
(/bin/chmod, /bin/chgrp, /bin/chown)
* /sapdb \
...
Thanks in advance,
Jan
--
http://blog.salid.de
More information about the sudo-users
mailing list