3

In Red Hat 7 I see

-session   optional    pam_systemd.so

in /etc/pam.d/system-session.

I also see that the - prefix is mentioned in LFS docs: http://www.linuxfromscratch.org/blfs/view/7.6-systemd/general/systemd.html

Please help me understand what does -session means here as opposed to simple session.

cstamas
  • 6,707
  • 25
  • 42

1 Answers1

4

Citing man pam.conf:

   If the type value from the list above is prepended with a -
   character the PAM library will not log to the system log if it
   is not possible to load the module because it is missing in the
   system. This can be useful especially for modules which are not
   always installed on the system and are not required for correct
   authentication and authorization of the login session.
Sven
  • 98,649
  • 14
  • 180
  • 226