[sudo-users] Wildcards with chmod

Blea, Lucy I lucy.i.blea at boeing.com
Tue May 17 15:32:20 EDT 2005


Have defined the following but user can not only change permission on
dirs/files in /tmp/test but any other dirs/files they specifiy in the
same command.  How can I limit them to only changing perms on dirs/files
in /tmp/test?

/opt/sudo/bin/sudo chmod 777 /tmp/test/file1 /etc/passwd /etc/shadow

User_Alias      TEST_ADMN= janedoe
Cmnd_Alias     TEST_CMDS = /usr/bin/chmod * /tmp/test/*
TEST_ADMN    server1 = NOPASSWD: TEST_CMDS

Lucy
Unix Systems Administrator






More information about the sudo-users mailing list