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

Dag-Erling Smorgrav des at FreeBSD.org
Tue Jan 6 01:47:25 PST 2004


des         2004/01/06 01:47:24 PST

  FreeBSD src repository

  Modified files:
    usr.bin/su           su.c 
  Log:
  When root tries to su to a non-existent user, pam_authenticate() will
  normally succeed (because root can su to anyone), but pam_acct_mgmt()
  will most likely fail, causing su to log a confusing "pam_acct_mgmt:
  error in service module" message.  To avoid this, call getpwnam()
  before pam_acct_mgmt().
  
  Sponsored by:   registrar.no
  
  Revision  Changes    Path
  1.72      +4 -4      src/usr.bin/su/su.c


More information about the cvs-src mailing list