From owner-freebsd-current@FreeBSD.ORG Wed Dec 1 08:14:25 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0064516A4D1 for ; Wed, 1 Dec 2004 08:14:24 +0000 (GMT) Received: from n33.kp.t-systems-sfr.com (n33.kp.t-systems-sfr.com [129.247.16.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3406B43D1F for ; Wed, 1 Dec 2004 08:14:24 +0000 (GMT) (envelope-from harti@freebsd.org) Received: from n81.sp.op.dlr.de (n81g.sp.op.dlr.de [129.247.163.1]) iB18EGU147892; Wed, 1 Dec 2004 09:14:17 +0100 Received: from zeus.nt.op.dlr.de (zeus.nt.op.dlr.de [129.247.173.3]) iB18EGI357596; Wed, 1 Dec 2004 09:14:16 +0100 Received: from beagle.kn.op.dlr.de (opkndnwsbsd178 [129.247.173.178]) by zeus.nt.op.dlr.de (8.11.7+Sun/8.9.1) with ESMTP id iB18FAu29030; Wed, 1 Dec 2004 09:15:10 +0100 (MET) Date: Wed, 1 Dec 2004 09:14:20 +0100 (CET) From: Harti Brandt X-X-Sender: brandt@beagle.kn.op.dlr.de To: animecowboy@animecowboy.com In-Reply-To: <1101874345.41ad44a92983e@www.animecowboy.com> Message-ID: <20041201091330.F655@beagle.kn.op.dlr.de> References: <1101874345.41ad44a92983e@www.animecowboy.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: current@freebsd.org Subject: Re: smbfs and setuid in 5.3 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Harti Brandt List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Dec 2004 08:14:25 -0000 On Tue, 30 Nov 2004 animecowboy@animecowboy.com wrote: > I am running 5.3r11 and I am having difficulty with mount_smbfs. Basically I > have a permissions problem that I cannot track down. The remote filesystem > mounts correctly, and as root I can view and write to it correctly. The > permissions to the base directory were originally 700, and sued to the owner of > the base I cannot stat the directory. > > I have tried changing the owner to another user, but had the same effect. After > trying a few things I set the permissions to 750, and I could view and stat the > directory. So I think it is some kind of UID bit not getting set correctly. > The GID seems to set correctly, and for the moment is being used for a work > around. > > I have mounted this filesystem on a FreeBSD 4.10(almost identical kernel) with > no problem using the 700 permission settings. So I'm fairly certain its not the > remote server, but just in case, the remote is a win2k pro machine. Try to use the -u and -g switches to mount_smbfs to specify the user that should access the mounted file system. harti