/etc/pam.d/system-session 中的“-session ...” 是什么意思?

/etc/pam.d/system-session 中的“-session ...” 是什么意思?

在 Red Hat 7 中我看到

-session   optional    pam_systemd.so

/etc/pam.d/system-session

-我还看到LFS 文档中提到了 该前缀:http://www.linuxfromscratch.org/blfs/view/7.6-systemd/general/systemd.html

请帮助我理解-session这里的意思与简单相反session

答案1

引用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.

相关内容