Wildcards: multiple match, ||

Chris Laco claco at summitracing.com
Fri Dec 6 10:55:40 EST 2002


What I want to do is allow certain users to edit one of several config
files; let's say rc.conf, ipf.rules, and hosts.allow

The long way of course would be:

Cmnd_Alias	CONF	=	/usr/bin/myeditor rc.conf, /usr/bin/myeditor
ipf.rules, /usr/bin/myeditor hosts.allow


Is there a short way to do this with wildcards and grouping?

Something like

Cmnd_Alias	CONF	=	/usr/bin/myeditor
{rc.conf,ipf.rules,hosts.allow}


Thanks,
-=Chris




More information about the sudo-users mailing list