From owner-freebsd-questions@FreeBSD.ORG Thu Jul 21 09:55:02 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4691116A426 for ; Thu, 21 Jul 2005 09:55:02 +0000 (GMT) (envelope-from ben@bjencks.net) Received: from bjencks.net (sub20-225.member.dsl-only.net [63.105.20.225]) by mx1.FreeBSD.org (Postfix) with SMTP id 95FB143D4C for ; Thu, 21 Jul 2005 09:54:55 +0000 (GMT) (envelope-from ben@bjencks.net) Received: (qmail 41485 invoked from network); 21 Jul 2005 09:54:54 -0000 Received: from unknown (HELO wagner.bjencks.net) (10.11.55.30) by bjencks.net with SMTP; 21 Jul 2005 09:54:54 -0000 Received: (from brj@localhost) by wagner.bjencks.net (8.13.4/8.13.4/Submit) id j6L9srvc056397; Thu, 21 Jul 2005 02:54:53 -0700 (PDT) (envelope-from ben@bjencks.net) X-Authentication-Warning: wagner.bjencks.net: brj set sender to ben@bjencks.net using -f To: conrads@cox.net References: From: Ben Jencks Date: Thu, 21 Jul 2005 02:54:50 -0700 In-Reply-To: (Conrad J. Sabatier's message of "Wed, 20 Jul 2005 19:02:13 -0500 (CDT)") Message-ID: <86ll40o55h.fsf@wagner.bjencks.net> User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: Mount point's drwxrwxrwt permissions change when device is mounted (5.4-STABLE, amd64) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jul 2005 09:55:02 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 "Conrad J. Sabatier" writes: > Can anyone shed some light on this for me? This is really most > mystifying! The way I have it set up is to allow my user to mount the usbdisk directly. This means the user has to own the mountpoint (probably best to put it in his homedir), have rw perms on /dev/da0s1, and vfs.usermount has to be set to 1. Then the user will be able to use mount_msdosfs without special privileges to mount /dev/da0s1. No fstab entry needed. The hard part is giving the user rw perms on /dev/da0s1. You have to create a devfs ruleset in /etc/devfs.rules. Then you have to activate it with the rc.conf knob devfs_system_ruleset. See devfs.rules(5) and /etc/defaults/devfs.rules. - -- Ben -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFC33Dspt3yYclAKVsRAmUjAJoDf20daxKIGNwjnW7HcXXqbdfwcwCbB+8z wPx8arIqB5Eu6M+B8lhi4Ag= =Xy2D -----END PGP SIGNATURE-----