From owner-freebsd-questions Wed Oct 3 20:59:10 2001 Delivered-To: freebsd-questions@freebsd.org Received: from pintail.mail.pas.earthlink.net (pintail.mail.pas.earthlink.net [207.217.120.122]) by hub.freebsd.org (Postfix) with ESMTP id CFCC537B407 for ; Wed, 3 Oct 2001 20:59:04 -0700 (PDT) Received: from blossom.cjclark.org (dialup-209.247.140.64.Dial1.SanJose1.Level3.net [209.247.140.64]) by pintail.mail.pas.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id UAA23821; Wed, 3 Oct 2001 20:59:01 -0700 (PDT) Received: (from cjc@localhost) by blossom.cjclark.org (8.11.6/8.11.3) id f943wwG10758; Wed, 3 Oct 2001 20:58:58 -0700 (PDT) (envelope-from cjc) Date: Wed, 3 Oct 2001 20:58:58 -0700 From: "Crist J. Clark" To: Elden Fenison Cc: The Psychotic Viper , Radhika Sambamurti , freebsd-questions@FreeBSD.ORG Subject: Re: chmod as root not working Message-ID: <20011003205858.M8391@blossom.cjclark.org> Reply-To: cjclark@alum.mit.edu References: <20011004005721.90800.qmail@web9302.mail.yahoo.com> <20011004031029.W40303-100000@lucifer.fuzion.ath.cx> <20011003184306.C25130@moondog.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011003184306.C25130@moondog.org>; from moon_dog@spamcop.net on Wed, Oct 03, 2001 at 06:43:06PM -0700 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 On Wed, Oct 03, 2001 at 06:43:06PM -0700, Elden Fenison wrote: > * On Thu, Oct 04, 2001 at 03:15:53AM +0200, The Psychotic Viper wrote: > > Thats because windows and their filesystems (fat or ntfs) dont support > > unix type permission structures.You wont be able to change file > > permissions throught the "conventional" manner using chmod. > > Linux allows for uid= and gid= in fstab. By using that you can set > global ownership on the mounted network share. Unfortunately, I'm not > certain whether that same thing works under FreeBSD or not. I've tried > it once and failed, but not looked much further into it. FreeBSD does. See mount_msdos(8). There are two different ways to specify the owner of an MSDOS filesystem. One is to explicitly provide '-u' and/or '-g' arguments to the mount command. The second is the default when no such arguments are provided. The filesystem is given the same ownership as the directory the filesystem is mounted on. -- Crist J. Clark cjclark@alum.mit.edu cjclark@jhu.edu cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message