From owner-freebsd-questions@FreeBSD.ORG Fri Jul 21 17:04:42 2006 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 7A08D16A4DE for ; Fri, 21 Jul 2006 17:04:42 +0000 (UTC) (envelope-from spock@dwinner.net) Received: from outbound-mail-17.bluehost.com (outbound-mail-17.bluehost.com [70.98.111.232]) by mx1.FreeBSD.org (Postfix) with SMTP id 6219143D9E for ; Fri, 21 Jul 2006 17:04:06 +0000 (GMT) (envelope-from spock@dwinner.net) Received: (qmail 31470 invoked by uid 0); 21 Jul 2006 17:04:01 -0000 Received: from unknown (HELO box122.bluehost.com) (67.106.44.122) by mailproxy1.bluehost.com with SMTP; 21 Jul 2006 17:04:01 -0000 Received: from [216.113.237.29] (helo=[10.10.6.20]) by box122.bluehost.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.52) id 1G3yPx-0006vt-4b for freebsd-questions@freebsd.org; Fri, 21 Jul 2006 11:04:01 -0600 Message-ID: <44C108FE.200@dwinner.net> Date: Fri, 21 Jul 2006 13:03:58 -0400 From: DW User-Agent: Thunderbird 1.5.0.4 (X11/20060621) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Identified-User: {731:box122.bluehost.com:dwinnern:dwinner.net} {sentby:smtp auth 216.113.237.29 authed with dwinner@dwinner.net} Subject: mount privileges...what the heck? 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: Fri, 21 Jul 2006 17:04:42 -0000 Hello, Discovered something odd today, trying to get the procedures down to help someone who wanted to mount a second drive to a mount point in their home directory. Running FreeBSD5.5p2 * 2nd drive device/partition: /dev/ad1s1d * /etc/sysctl.conf: vfs.usermount=1 * /etc/devfs.conf: perm ad1s1d 0666 Created a directory home homedir: # mkdir /usr/home/dude/drive2 Ownership on mount point: dude:dude /usr/home/dude/drive2 Now when I do: # mount /dev/da1s1d /usr/home/dude/drive2 Ownership shows: root:wheel /usr/home/dude/drive2 This is not acceptable! should be "dude:dude /usr/home/dude/drive2" So I try: # sudo chown -R dude:dude /usr/home/dude/drive2 ok, now it looks ok, but I don't expect it stick, but check it out: # umount /usr/home/dude/drive2 # mount /dev/da1s1d /usr/home/dude/drive2 ownership still shows dude:dude ! I try to reboot, mount again, and ownership still is what I want, dude:dude I add line to /etc/fstab, reboot, everything still looks good! So any ideas on why I need to do a chown -R dude:dude after the first mount?????? Am I missing something, going insane, or is something buggy here???? Cheers, DW