Re: cvs commit: src/usr.bin/su su.c

From: Dag-Erling Smørgrav <des_at_des.no>
Date: Sat, 30 Sep 2006 13:25:24 +0200
Luoqi Chen <luoqi_at_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 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.

Thank you.

DES
-- 
Dag-Erling Smørgrav - des_at_des.no
Received on Sat Sep 30 2006 - 11:25:32 UTC