From owner-freebsd-questions Wed Jun 12 15:56:20 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail2.ameuro.de (mail2.ameuro.de [62.208.90.8]) by hub.freebsd.org (Postfix) with ESMTP id 5F4F537B406 for ; Wed, 12 Jun 2002 15:55:54 -0700 (PDT) Received: from seth.augenstein.net (pD950EF9E.dip.t-dialin.net [217.80.239.158]) (authenticated bits=0) by mail2.ameuro.de (8.12.2/8.12.2) with ESMTP id g5CMtoXh028077; Thu, 13 Jun 2002 00:55:51 +0200 Received: by seth.augenstein.net (Postfix, from userid 666) id 7E2121BC; Thu, 13 Jun 2002 00:54:57 +0200 (CEST) Date: Thu, 13 Jun 2002 00:54:57 +0200 From: Norbert Augenstein To: freebsd-questions@FreeBSD.ORG Cc: hanspeter_roth@hotmail.com Subject: Re: user-mounting FAT Message-Id: <20020613005457.42bf1a0f.norbert@augenstein.net> In-Reply-To: <20020612234700.A774@gicco.cablecom.ch> References: <20020612234700.A774@gicco.cablecom.ch> X-Mailer: Sylpheed version 0.7.4 (GTK+ 1.2.10; i386-portbld-freebsd4.5) X-Copyright: (c) Norbert Augenstein -> Forwarding NOT permitted without prior permission! Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, set vfs.usermount=1 in sysctl.conf for a constant change [auge@seth auge]$ cat /etc/sysctl.conf # $FreeBSD: src/etc/sysctl.conf,v 1.1.2.2 2001/12/19 17:52:17 ru Exp $# # This file is read when going to multi-user and its contents piped thru# ``sysctl'' to adjust kernel values. ``man 5 sysctl.conf'' for details.# vfs.usermount=1 [auge@seth auge]$ sysctl vfs.usermount vfs.usermount: 1 [auge@seth auge]$ you can mount on every directory you are the owner of. check permissions for read/write of it and ALSO in /dev , the user must have rw permission to the device to mount [auge@seth auge]$ egrep /mnt/win2k /etc/fstab /dev/ad0s1 /mnt/win2k msdos rw,noauto 0 0 [auge@seth auge]$ ls -l /dev |grep ad0s1 crw-rw---- 2 root operator 116, 0x00020002 May 5 10:28 ad0s1 ...snip... [auge@seth auge]$ id uid=666(auge) gid=0(wheel) groups=0(wheel), 5(operator), 69(network) auge if you do not want usermount after reboot, use sysctl command: [auge@seth auge]$ sysctl vfs.usermount=1 On Wed, 12 Jun 2002 23:47:00 +0200 Hanspeter Roth wrote: > Hello, > > is there something like a user-mount for a FAT partition > that lets an ordinary user (non-root) write on the partition > if he has mounted it himself? > This works on Linux. On FreeBsd I could only write on a FAT > partition by root itself. > > -Hanspeter > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the > message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message