How to set up chmod/chown to work in a specific directory?

Heikki Korpela heko at
Mon Jun 25 14:51:25 EDT 2001

On Mon, 25 Jun 2001, Chen, Sunny wrote:

> # Cmnd alias specification
> Cmnd_Alias CHMODHOME=/usr/bin/chmod /export/home/[A-z]*/
> Cmnd_Alias CHOWNHOME=/usr/bin/chown /export/home/[A-z]*/

This is shell globbing. sudo configuration files don't go through shell

> Can anyone tell me how to make "chmod" and "chown" to work in
> /export/home only?

With some kind of a carefully written wrapper script, possibly.

> Sunny

                   Heikki Korpela -- heko at

More information about the sudo-users mailing list