From owner-freebsd-questions Wed Aug 11 8:28:23 1999 Delivered-To: freebsd-questions@freebsd.org Received: from vax1.baker.ie (VAX1.baker.IE [194.125.50.91]) by hub.freebsd.org (Postfix) with SMTP id 6AB3815556 for ; Wed, 11 Aug 1999 08:28:07 -0700 (PDT) (envelope-from cillian@baker.ie) Received: from baker.ie ([194.125.50.55]) by vax1.baker.ie with ESMTP; Wed, 11 Aug 1999 15:10:42 +0100 Message-ID: <37B18001.D2A1881@baker.ie> Date: Wed, 11 Aug 1999 14:52:01 +0100 From: Cillian Sharkey X-Mailer: Mozilla 4.6 [en] (Win95; U) X-Accept-Language: en MIME-Version: 1.0 To: Konrad Heuer Cc: questions@FreeBSD.ORG Subject: Re: users mounting filesystems References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > AFAIK in Linux one can add the "user" mount option in /etc/fstab > > and any user can then mount that filesystem (not until I put in the > > nosuid,nodev,noexec,etc.. options to limit their use) > > > I'm aware it's a potential security risk, but is there any clean > > way of giving a user the ability to mount an msdos floppy for example.. > > > > in the previous discussions, amd, sudo and some other methods were > > offered.. > > I use sudo to give some experienced users (e.g. username expert) the > ability to mount/umount. For convenience, I set aliases in /etc/profile > and /etc/csh.login: > > if [ "$USER" = expert ]; then > alias mount='/usr/local/bin/sudo /sbin/mount' > alias umount='/usr/local/bin/sudo /sbin/umount' > fi Hmm..doing this means that they have access to mount/unmount any filesystem they want to (plus override any options in /etc/fstab), which is not what I want when they only need to be able to mount a msdos floppy disk for example.. ..as I mentioned above, Linux has a "user" mount option which can be used on specified filesystems in /etc/fstab, perhaps BSD could have something similar or is there a better way to do this ? - Cillian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message