[clue-tech] user mounts

David L. Willson DLWillson at TheGeek.NU
Fri Dec 8 09:26:08 MST 2006


On Fri, 08 Dec 2006 09:22:13 -0700, Michael J. Hammel wrote
> 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.
> 
Excellent.  Thank you, Michael!



More information about the clue-tech mailing list