From owner-freebsd-hackers Sun Aug 29 15:28:25 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from ikhala.tcimet.net (ikhala.tcimet.net [198.109.166.215]) by hub.freebsd.org (Postfix) with ESMTP id B393F15165 for ; Sun, 29 Aug 1999 15:28:23 -0700 (PDT) (envelope-from dervish@ikhala.tcimet.net) Received: (from dervish@localhost) by ikhala.tcimet.net (8.9.3/8.9.3) id SAA02180; Sun, 29 Aug 1999 18:57:46 -0400 (EDT) (envelope-from dervish) Date: Sun, 29 Aug 1999 18:57:46 -0400 From: Natty Rebel To: freebsd-hackers@FreeBSD.ORG Cc: Volker Stolz Subject: Re: [mount.c]: Option "user"-patch Message-ID: <19990829185746.A2123@ikhala.tcimet.net> References: <19990829122417.A21619@jennifer.informatik.rwth-aachen.de> <199908292203.WAA00408@orthanc.koshy.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i In-Reply-To: <199908292203.WAA00408@orthanc.koshy.org>; from JK3 on Sun, Aug 29, 1999 at 10:03:40PM +0000 X-Operating-System: FreeBSD 4.0-CURRENT i386 X-PGP-Fingerprint: 2C CE A5 D7 FA 4D D5 FD 9A CC 2B 23 04 46 48 F8 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 > > Regards, > Koshy > > #:^) -- natty rebel harder than the rest ... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message