From owner-freebsd-questions@FreeBSD.ORG Thu Jun 19 11:23:21 2003 Return-Path: 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 037D737B401 for ; Thu, 19 Jun 2003 11:23:21 -0700 (PDT) Received: from mail3.panix.com (mail3.panix.com [166.84.1.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 30F7143F85 for ; Thu, 19 Jun 2003 11:23:20 -0700 (PDT) (envelope-from fj@panix.com) Received: from panix5.panix.com (panix5.panix.com [166.84.1.5]) by mail3.panix.com (Postfix) with ESMTP id 42D1798408 for ; Thu, 19 Jun 2003 14:23:19 -0400 (EDT) Received: (from fj@localhost) by panix5.panix.com (8.11.6p2/8.8.8/PanixN1.1) id h5JINJD08801 for freebsd-questions@freebsd.org; Thu, 19 Jun 2003 14:23:19 -0400 (EDT) Date: Thu, 19 Jun 2003 14:23:19 -0400 From: Joe Altman To: freebsd-questions@freebsd.org Message-ID: <20030619182319.GA26293@panix.com> Mail-Followup-To: Joe Altman , freebsd-questions@freebsd.org References: <1056007910.bdee7360ejoy@myrealbox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1056007910.bdee7360ejoy@myrealbox.com> User-Agent: Mutt/1.4.1i Subject: Re: mount msdos partition with user id? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jun 2003 18:23:21 -0000 On Thu, Jun 19, 2003 at 01:31:50AM -0600, Zhang Le wrote: > Hello, > I just move from linux to bsd and have a question on mounting partition with a specific user id. The following command does not work: > root@:/home/zl/etc# mount -t msdos -o uid zl /dev/ad0s1 /d > msdos: -o uid : option not supported > > but "mount -t msdos /dev/ad0s1 /d" works. > > I have to su root each time I want to write something to /d. This is of course very boring. Would a change of permissions on the drive help, along with the appropriate entry in /etc/fstab and an addition to group wheel? Here is what I remember doing: 1) created the entry in /etc/fstab to mount the drive at boot, something like: /dev/ad1s1c /msdos ufs rw 2 2 NB: I had to create the /msdos directory, of course. I didn't want to use /mnt, for some reason. But you could use /mnt, if you wish. 2) changed perms on the mount point to 77x, which was owned by root:wheel 3) put me in group wheel I think this is what I did, and was all that was needed, and I could modify the contents at will. Unfortunately, it was some time ago that I did this, so it's possible I left something out. HTH. -- Free the West Memphis Three http://www.wm3.org/