Hello,

You could instead use sudo to unmount the filesystems as necessary.
An entry in the sudoers file such as:

<useralias> <hostalias> = <password options>:/bin/umount -t nfs /misc/*

Will allow the users in question to run:
        sudo /bin/umount -t nfs /misc/tempfs

And of course, it will fail if the filesystem's in use.

In my mind, this may be a better place to implement commands requiring root.

--jason


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Jason Brooks ~ (503) 641-3440 x1861 Direct ~ (503) 924-1861 Email to: [EMAIL PROTECTED] Twiki: http://twiki.wrs.com/do/view/Main/JasonBrooks

Senior Systems Administration Analyst
Wind River Systems
8905 SW Nimbus ~ Suite 255      
Beaverton, Or 97008


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ian Kent
Sent: Tuesday, February 03, 2004 4:41 AM
To: J�rg Fichter
Cc: [EMAIL PROTECTED]
Subject: Re: [autofs] automount


On Mon, 2 Feb 2004, [iso-8859-1] J�rg Fichter wrote:

> Dear Sirs,
> > I've installed the automount system on my PC. Different user works on > this terminal! So I modified the auto.master file like this:
> > /misc /etc/auto.misc user, exec, uid=700, gid=500


Can't at the moment.

The user option is only supported by mount when present in the fstab.

I posted a message to the util-linux list but haven't followed up on this. I've been to busy.

Ian


_______________________________________________ autofs mailing list [EMAIL PROTECTED] http://linux.kernel.org/mailman/listinfo/autofs


_______________________________________________ autofs mailing list [EMAIL PROTECTED] http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to