From owner-freebsd-questions@FreeBSD.ORG Mon Jun 9 11:05:08 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 5DC4B37B484 for ; Mon, 9 Jun 2003 11:05:08 -0700 (PDT) Received: from grassmarket.ucs.ed.ac.uk (grassmarket.ucs.ed.ac.uk [129.215.166.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1226A43FB1 for ; Mon, 9 Jun 2003 11:05:07 -0700 (PDT) (envelope-from s9905155@sms.ed.ac.uk) Received: from fourtytwo.brucec.backnet (12266209.resnet.ed.ac.uk [10.6.0.100] (may be forged))h59I4qT22897; Mon, 9 Jun 2003 19:04:52 +0100 (BST) Received: from fourtytwo.brucec.backnet (localhost.brucec.backnet [127.0.0.1]) h59I584v048535; Mon, 9 Jun 2003 19:05:08 +0100 (BST) (envelope-from bruce@fourtytwo.brucec.backnet) Received: (from bruce@localhost)h59I58OW048534; Mon, 9 Jun 2003 19:05:08 +0100 (BST) Date: Mon, 9 Jun 2003 19:05:08 +0100 From: Bruce Cran To: jonr@destar.net Message-ID: <20030609180508.GA48483@fourtytwo.brucec.backnet> References: <33423.24.237.6.229.1054853104.squirrel@www.destar.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <33423.24.237.6.229.1054853104.squirrel@www.destar.net> User-Agent: Mutt/1.5.4i cc: questions@freebsd.org Subject: Re: Mount command...again 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: Mon, 09 Jun 2003 18:05:08 -0000 On Thu, Jun 05, 2003 at 02:45:04PM -0800, jonr@destar.net wrote: > Ok, here is what I am trying to do. I am trying to mount a samba served > directory on a remote system onto my local system. Both servers are > running freebsd4.8. I want to mount the remote directory with the > priveliges of the remote owner of the directory onto my local system. > > In Linux I can do it this way: > mount -t smbfs -o username=,password=, > uid=jonr,gid=jonr //sambaserver/ /path/to/mount/point > > This will send my username and password then mount the share with the > remote users uid and gid. > > Is there a way to do this on FreeBSD? I have been reading the man pages > for mount and mount_smbfs and can't find out how to do this. > -- > Jon Reynolds > Have you tried mount_smbfs -u uid -g gid //@sambaserver/ /mountpoint where uid and gid is the user/group whom you want the files to be accessible by. This works on my -current system. -- Bruce Cran