How can I make su - also pay attention to the /etc/security/access.conf
Você precisa adicionar a seguinte entrada em /etc/pam.d/su
, para usar /etc/security/access.conf
para su -
session required pam_access.so
Homem pam_access
The pam_access PAM module is mainly for access management. It provides logdaemon style login access control based on login names, host or domain names, internet addresses or network numbers, or on terminal line names in case of non-networked logins.
By default rules for access management are taken from config file /etc/security/access.conf if you don't specify another file