[sudo-users] Using wild cards in a command path

Carville, Stephen scarville at LANDAM.com
Mon Jul 28 16:34:16 EDT 2008


> -----Original Message-----
> From: sudo-users-bounces at courtesan.com [mailto:sudo-users-
> bounces at courtesan.com] On Behalf Of Eric Bradley
> Sent: Monday, July 28, 2008 12:29 PM
> To: sudo-users at sudo.ws
> Subject: [sudo-users] Using wild cards in a command path
> 
> I want to allow user1 and user2 to run any command in the path
> /opt/networker/bin as root. In my sodoers file I have the following:
> 
> User_Alias      U_APP_NETWORKER=user1, user2
> 
> Cmnd_Alias      C_APP_NETWORKER=\
>                 /opt/networker/bin/*

Try this instead (no *):

Cmnd_Alias      C_APP_NETWORKER = /opt/networker/bin/

--
Stephen Carville <scarville at landam.com>
Systems Engineer
Land America
1.626.667.1450 X1326
#####################################################################
That which does not kill us often hurts us a lot.





More information about the sudo-users mailing list