From owner-freebsd-questions@FreeBSD.ORG Fri Jul 21 18:48:12 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 B465B16A4DD for ; Fri, 21 Jul 2006 18:48:12 +0000 (UTC) (envelope-from spock@dwinner.net) Received: from outbound-mail-18.bluehost.com (outbound-mail-18.bluehost.com [70.98.111.233]) by mx1.FreeBSD.org (Postfix) with SMTP id 55A3043D4C for ; Fri, 21 Jul 2006 18:48:12 +0000 (GMT) (envelope-from spock@dwinner.net) Received: (qmail 25225 invoked by uid 0); 21 Jul 2006 18:48:07 -0000 Received: from unknown (HELO box122.bluehost.com) (67.106.44.122) by mailproxy1.bluehost.com with SMTP; 21 Jul 2006 18:48:07 -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 1G402h-00027j-4f; Fri, 21 Jul 2006 12:48:07 -0600 Message-ID: <44C12164.6060708@dwinner.net> Date: Fri, 21 Jul 2006 14:48:04 -0400 From: DW User-Agent: Thunderbird 1.5.0.4 (X11/20060621) MIME-Version: 1.0 To: Robert C Wittig References: <44C108FE.200@dwinner.net> <44C11B6C.3070406@sbcglobal.net> In-Reply-To: <44C11B6C.3070406@sbcglobal.net> 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} Cc: freebsd-questions@freebsd.org Subject: Re: 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 18:48:12 -0000 Robert C Wittig wrote: > DW wrote: > >> 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???? > > You created the directory as root: > > # mkdir /usr/home/dude/drive2 > > ...so it belongs to root. no, the first time this was my thought too, I've been known to do stuff like this, especially since so much activity is done with 'sudo', but we went back (each of us on our respective machines), and did it again, making sure we were doing it as 'dude', not sudo or 'root', and it happened every time. > > > I can only assume that... > > 'Ownership on mount point: dude:dude /usr/home/dude/drive2' > > ...does not mean that you actually did a > > # chown dude:dude /usr/home/dude/drive2 > > ...which is necessary, after root creates a directory. > > > > Why didn't you just log in as dude to create the directory that was > going to serve as the mount point, as in: > > % mkdir /usr/home/dude/drive2 ...or > $ mkdir /usr/home/dude/drive2 I swear, that's what we did!!!! :) Maybe I'm losing it?, but we went back and verified and verified, and still scratching our heads. > > > > Just yesterday I did exactly this on my PC-BSD (FreeBSD 6.1, basically) > > First I created, logged in an my 'dude' identity (as opposed to my > root identity), and created 4 directories in /home/dude, for mounting > four data partitions that exist on a data hard drive that is accessed > by PC-BSD, Red Hat Enterprise 3, or Windows XP SP2 (depending on which > front-loading, swappable hard drive cage with operating system, I have > plugged into the machine. the partitions are Samba shares, when *nix > is plugged into the machine, so they are always accessible to other > Windows boxes on the LAN. > > Then, I wrote a shell script called 'mountall', which is the BSD > equivalent to the script I have in Red Hat, for mounting the partitions. > > Then I ran the script, and voila... my Windows 2000 graphics > workstation could read and write to the Samba shares as per usual. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"