Skrevet av Emne: How to make Courier-IMAP log to lastlog using pam_lastlog  (Lest 4503 ganger)

ATC

  • Gjest
  • [applaud]0
  • [smite]0
  • I have a ton of accounts on my server, but I have no idea which ones are actually in active use. Courier-IMAP created two files in /etc/pam.d aptly named 'imap' and 'pop3'.

    Reading the man page for pam_lastlog and trying to understand how PAM works, I have tried adding 'session    required      pam_lastlog.so silent' to both files. (The 'silent' keyword is used to suppress the information message typically shown when using ssh or telnet to log in)

    auth       required     pam_nologin.so
    auth       required     pam_stack.so service=system-auth
    account    required     pam_stack.so service=system-auth
    session    required     pam_stack.so service=system-auth
    session    required      pam_lastlog.so silent

    Unfortunately, the monster that is PAM refuses to cooperate.... what am I doing wrong?



    ATC

    • Gjest
    [Solved] How to make Courier-IMAP log to lastlog using pam_lastlog
    « Svar #1 på: 31. Mars 2009, 13:59 pm »
  • [applaud]0
  • [smite]0
  • Unfortunately, the current version of Courier-Auth does not seem to call pam_session_start() and pam_session_stop().