From owner-freebsd-hackers Sun Aug 29 15:30:40 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from pawn.primelocation.net (pawn.primelocation.net [205.161.238.235]) by hub.freebsd.org (Postfix) with ESMTP id 515FC15165 for ; Sun, 29 Aug 1999 15:30:37 -0700 (PDT) (envelope-from jedgar@fxp.org) Received: by pawn.primelocation.net (Postfix, from userid 1003) id 48C95F818; Sun, 29 Aug 1999 18:30:35 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by pawn.primelocation.net (Postfix) with ESMTP id 397D39B1C; Sun, 29 Aug 1999 18:30:35 -0400 (EDT) Date: Sun, 29 Aug 1999 18:30:35 -0400 (EDT) From: "Chris D. Faulhaber" X-Sender: jedgar@pawn.primelocation.net To: Natty Rebel Cc: freebsd-hackers@FreeBSD.ORG, Volker Stolz Subject: Re: [mount.c]: Option "user"-patch In-Reply-To: <19990829185746.A2123@ikhala.tcimet.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 29 Aug 1999, Natty Rebel wrote: > Quoting JK3 (jk3@bgl.vsnl.net.in): > > > > vs> I whacked mount and umount into shape for using an option "user" in > > [snip] > > vs> http://www-i2.informatik.rwth-aachen.de/~stolz/mount.diff > > vs> http://www-i2.informatik.rwth-aachen.de/~stolz/umount.diff. > > > > vs> Discussion welcome! > > > > You can allow non-root users to mount and unmount devices if > > the sysctl variable "vfs.usermount" is set to "1". > > > > For example, here's what you need to do to allow floppies to > > be mounted: > > > > As `root': > > 1. # chmod 777 /dev/fd0 # give perms to access the device > > 2. # sysctl -w vfs.usermount=1 > > > > Now users can mount and umount the floppies: > > 3. $ mkdir ~/my-mount-point > > 4. $ mount -t msdos /dev/fd0 ~/my-mount-point > > 5. $ umount ~/my-mount-point > > > > A FAQ entry covering this point is being reviewed and should shortly > > be committed. > This procedure can be automated by entering the following command > in /etc/rc.sysctl > sysctl -w vfs.usermount=1 > Maybe it's just me, but I think you are confusing this with {Net|Open}BSD. /etc/rc.sysctl does not exist in FreeBSD. ----- Chris D. Faulhaber | All the true gurus I've met never System/Network Administrator, | claimed they were one, and always Reality Check Information, Inc. | pointed to someone better. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message