using chown in the sudoers file

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: David
Date:  
To: Main PLUG discussion list
Subject: using chown in the sudoers file
Ok, I'm at the point of frustration with this one. I need to be able to give a specific user access to change ownership on all files in the web directory.

Ive added this to the /etc/sudoers file:

xxxx1234            ALL = NOPASSWD: /bin/chown * /var/www/html/invites


Where xxxx1234 is the user I want to give access to. However, after doing so, I get this:

wwwphx:/var/www/html/invites>sudo chown vendor web.gif
Sorry, user xxxx1234 is not allowed to execute '/bin/chown vendor web.gif' as root on server.name.com.

I've tried various variations of said sudoer entry, with none working except giving carte blance to the "chown" command, which I'm loathe to do.

What am I doing wrong here?

Thanks,
David

--
"I find your lack of faith disturbing."
--Darth Vader
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss