[clue-tech] user mounts

Michael J. Hammel mjhammel at graphics-muse.org
Fri Dec 8 09:22:13 MST 2006


On Fri, 2006-12-08 at 08:55 -0700, David L. Willson wrote:
> The answer is probably add such and such a line to /etc/sudoers, but then how do I
> control who is allowed to mount what where?  I don't want Joe Random User mounting
> something stupid at /etc, now do I?

sudo can be configured to allow a specific user access to a specific
command, including command line arguments.  So if you set up a specific
mount point /home/joerandomuser/mnt in /etc/fstab and then specify
JoeRandomUser can do "mount /home/joerandomuser/mnt" then JoeRandomUser
can mount /home/joerandomuser/mnt because he can run that specific
command as the root user, but only that specific command.

-- 
Michael J. Hammel                                    Senior Software Engineer
mjhammel at graphics-muse.org                           http://graphics-muse.org
------------------------------------------------------------------------------
      Technology keeps us apart.  Please, use it.  --  Michael J. Hammel




More information about the clue-tech mailing list