From owner-freebsd-questions@FreeBSD.ORG Wed Jun 4 00:23:07 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 C2C4637B401 for ; Wed, 4 Jun 2003 00:23:07 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 660FF43FA3 for ; Wed, 4 Jun 2003 00:23:06 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) h547LaMJ088982 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 4 Jun 2003 08:22:57 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)h547Lad1088981; Wed, 4 Jun 2003 08:21:36 +0100 (BST) (envelope-from matthew) Date: Wed, 4 Jun 2003 08:21:36 +0100 From: Matthew Seaman To: Jon Reynolds Message-ID: <20030604072136.GB88489@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Jon Reynolds , FreeBSD References: <1054700699.1760.21.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="XOIedfhf+7KOe/yw" Content-Disposition: inline In-Reply-To: <1054700699.1760.21.camel@localhost.localdomain> User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-7.5 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: FreeBSD Subject: Re: Mount question 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: Wed, 04 Jun 2003 07:23:08 -0000 --XOIedfhf+7KOe/yw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 03, 2003 at 08:25:00PM -0800, Jon Reynolds wrote: > How do I issue the 'mount' command so that I can tell it the uid an gid > of the newly mounted filesystem? That depends on the type of filesystem you're mounting. Only certain fs types support doing that sort of thing, and those are generally derived from OSes with poor or no concept of individual user IDs. Unix/Linux/FreeBSD filesystems (ufs, mfs, ext2, nfs, etc) already incorporate owner/group information built into the filesystem metadata. Eg. see mount_msdos(8) as an example of a filesystem where file ownership can be set wholesale -- the '-u uid' and '-g gid' options do exactly what you want. In general there should be a 'mount_foo(8)' manual page for any filesystem type 'foo' supported by the system, and that page will describe the filesystem specific options. In the case of NFS you can override some uid/gid settings from the NFS *server*: see the descriptions of the -maproot and -mapuser options in exports(5). Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --XOIedfhf+7KOe/yw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE+3Z4AdtESqEQa7a0RAgoEAJ9RKU4a+8mkb7ihNInW77Nx5KqD7gCeJjf8 N/9/9dpMRJ1sqb1equcrz9o= =zxKz -----END PGP SIGNATURE----- --XOIedfhf+7KOe/yw--