From owner-freebsd-questions Sat Apr 1 11:31: 6 2000 Delivered-To: freebsd-questions@freebsd.org Received: from ns1.sunesi.net (ns1.sunesi.net [196.15.192.194]) by hub.freebsd.org (Postfix) with ESMTP id EEBBA37B9DB for ; Sat, 1 Apr 2000 11:30:58 -0800 (PST) (envelope-from nbm@sunesi.net) Received: from nbm by ns1.sunesi.net with local (Exim 3.03 #1) id 12bTbF-000L5A-00; Sat, 01 Apr 2000 21:30:25 +0200 Date: Sat, 1 Apr 2000 21:30:25 +0200 From: Neil Blakey-Milner To: Marty Leisner Cc: Bart Lateur , dave , freebsd-questions@FreeBSD.ORG Subject: Re: mounting a cdrom as a normal user. Message-ID: <20000401213025.C80313@mithrandr.moria.org> References: <38e726f9.857708@relay.skynet.be> <200004011912.OAA02255@rochester.rr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <200004011912.OAA02255@rochester.rr.com> Organization: Sunesi Clinical Systems X-Operating-System: FreeBSD 3.3-RELEASE i386 X-URL: http://rucus.ru.ac.za/~nbm/ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat 2000-04-01 (14:12), Marty Leisner wrote: > The linux mount program is setuid and has a user fstab option. > > I definitely like it...it solves this problem... > > I have cdrom entries in my fstab of noauto,user > and don't have this problem. FreeBSD can mount filesystems as a user. Without an additional, possibly insecure, setuid program. Just 'sysctl -w vfs.userload=1', and set your device and mount point permissions accordingly. Or, simply create two setuid scripts that each do exactly one thing - the first mounts a specific filesystem in a specific place, and the other unmounts the specific filesystem in that specific place. Look in the FAQ, the "System Administration" section, and the "How do I let ordinary users mount floppies and other removable media" question. Neil -- Neil Blakey-Milner nbm@rucus.ru.ac.za To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message