From owner-freebsd-current@FreeBSD.ORG Sat Sep 23 01:19:12 2006 Return-Path: X-Original-To: current@freebsd.org 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 D00E416A403; Sat, 23 Sep 2006 01:19:12 +0000 (UTC) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9206543D4C; Sat, 23 Sep 2006 01:19:12 +0000 (GMT) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (localhost [127.0.0.1]) by xorpc.icir.org (8.12.11/8.12.11) with ESMTP id k8N1JB8r080620; Fri, 22 Sep 2006 18:19:11 -0700 (PDT) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.11/8.12.3/Submit) id k8N1JBCW080619; Fri, 22 Sep 2006 18:19:11 -0700 (PDT) (envelope-from rizzo) Date: Fri, 22 Sep 2006 18:19:11 -0700 From: Luigi Rizzo To: Luoqi Chen Message-ID: <20060922181911.A80589@xorpc.icir.org> References: <200609230100.k8N10LvU049281@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <200609230100.k8N10LvU049281@freefall.freebsd.org>; from luoqi@freebsd.org on Sat, Sep 23, 2006 at 01:00:21AM +0000 Cc: current@freebsd.org Subject: Re: su failed to chdir with NFS mounted home dir X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Sep 2006 01:19:12 -0000 On Sat, Sep 23, 2006 at 01:00:21AM +0000, Luoqi Chen wrote: > Hi, > > I've encountered a problem with su on NFS mounted home dir. In revision > 1.68 of su.c, the code was rearranged to chdir before new uid was set, > this chdir would fail if local root doesn't have permission to enter > the target user's home dir. This is exactly the case when you have a NFS > mounted home dir with 0750 permission while root is mapped to nobody on NFS. interesting, i was seeing problems with suid binaries (e.g. mtools) being unable to write on NFS-mounted directories on 6.1 -- this was on a lab with diskless machines. Could it be due to similar reasons ? cheers luigi > Is there an owner for su.c? I'd like to modify it to delay this chdir to > after the new uid is set. > > Thanks > -lq > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"