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

Luoqi Chen luoqi at FreeBSD.org
Thu Sep 28 21:41:37 PDT 2006


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


More information about the cvs-src mailing list