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

Dag-Erling Smørgrav des at
Sat Sep 30 04:25:32 PDT 2006

Luoqi Chen <luoqi at> 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.

Dag-Erling Smørgrav - des at

More information about the cvs-src mailing list