sudo and commands with parameters

Todd C. Miller Todd.Miller at courtesan.com
Mon Jul 9 10:25:01 EDT 2001


In message <549AB966B45DD311A58A0000E86CEA8D0CAED645 at postoffice.btitele.com>
	so spake David Edward Shapiro (David.Edward.Shapiro):

> I want to give access to a very specific command, for example, chown bubba
> bubba.txt, but I am not sure how to set up a command alias to have more than
> just the command (i.e., /bin/chown instead of of the command with parameters
> -- /bin/chown bubba bubba.txt).    visuduo complains when I put the
> parameters (I tried it in quotes too).  What's the magic?  

Unless you have a really really old sudo the following should work:

user	HOST = /bin/chown bubba bubba.txt

 - todd



More information about the sudo-users mailing list