Date: Fri, 29 Sep 2006 04:41:37 +0000 (UTC) From: Luoqi Chen <luoqi@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/su su.c Message-ID: <200609290441.k8T4fbIE008707@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
luoqi 2006-09-29 04:41:37 UTC
FreeBSD src repository
Modified files:
usr.bin/su su.c
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 directory.
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.
Revision Changes Path
1.81 +4 -6 src/usr.bin/su/su.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609290441.k8T4fbIE008707>
