Date: Fri, 22 Sep 2006 18:19:11 -0700 From: Luigi Rizzo <rizzo@icir.org> To: Luoqi Chen <luoqi@freebsd.org> Cc: current@freebsd.org Subject: Re: su failed to chdir with NFS mounted home dir Message-ID: <20060922181911.A80589@xorpc.icir.org> In-Reply-To: <200609230100.k8N10LvU049281@freefall.freebsd.org>; from luoqi@freebsd.org on Sat, Sep 23, 2006 at 01:00:21AM %2B0000 References: <200609230100.k8N10LvU049281@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060922181911.A80589>