Date: Sat, 30 Sep 2006 13:25:24 +0200 From: des@des.no (Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?=) To: Luoqi Chen <luoqi@FreeBSD.org> Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/su su.c Message-ID: <86d59dlhp7.fsf@dwp.des.no> In-Reply-To: <200609290441.k8T4fbIE008707@repoman.freebsd.org> (Luoqi Chen's message of "Fri, 29 Sep 2006 04:41:37 %2B0000 (UTC)") References: <200609290441.k8T4fbIE008707@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Luoqi Chen <luoqi@FreeBSD.org> writes: > Log: > Do not chdir(2) until after setuid(2), otherwise "su - username" would = fail > when root doesn't have the permission to enter target user's home direc= tory. > If set, PAM environment variable HOME will be used in chdir(2) instead = of > pwd->pw_dir, this allows pam_chroot module to continue to function. Thank you. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86d59dlhp7.fsf>