From owner-freebsd-hackers Sun Aug 29 9:23:52 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from mbg.vsnl.net.in (mbg.vsnl.net.in [202.54.12.3]) by hub.freebsd.org (Postfix) with ESMTP id BD72815761 for ; Sun, 29 Aug 1999 09:23:44 -0700 (PDT) (envelope-from jk3@bgl.vsnl.net.in) Received: from orthanc.koshy.org (PPP-191-170.bng.vsnl.net.in [203.197.191.170]) by mbg.vsnl.net.in (8.9.1a/8.9.1) with ESMTP id VAA22320; Sun, 29 Aug 1999 21:58:53 +0500 (GMT+0500) Received: from localhost (localhost [127.0.0.1]) by orthanc.koshy.org (8.9.3/8.8.8) with ESMTP id WAA00408; Sun, 29 Aug 1999 22:03:41 GMT (envelope-from jk3@orthanc.koshy.org) Message-Id: <199908292203.WAA00408@orthanc.koshy.org> X-Mailer: exmh version 2.0.2 2/24/98 To: Volker Stolz Cc: freebsd-hackers@freebsd.org Subject: Re: [mount.c]: Option "user"-patch In-reply-to: Your message of "Sun, 29 Aug 1999 12:24:17 +0200." <19990829122417.A21619@jennifer.informatik.rwth-aachen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 29 Aug 1999 22:03:40 +0000 From: JK3 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. Regards, Koshy To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message