[sudo-users] allow user a to copy files as user b
george at yorku.ca
Thu Jun 9 13:32:20 EDT 2005
Hi, I am trying to set up sudoers to allow the user "wouser" to copy
files into a directory owned by user yim and have the target files be
owned by user yim. The user "wouser" would execute:
sudo -u yim cp <some-file> /dira/dirb/<some-file>
User_Alias YIM = wouser
Cmnd_Alias YIM_CMD = /sbin/su yim cp * /dira/dirb/*
CP_YIM ALL = NOPASSWD: YIM_CMD
but this is not working too well.
What did I screw up ? Can you pls suggest a fix for this ?
More information about the sudo-users