'su -' doesn't prompt for passcode on SUSE with PAM Agent
2 years ago
Originally Published: 2015-07-07
Article Number
000053589
Applies To
RSA Product Set: SecurID
RSA Product/Service Type: Authentication Agent for PAM
RSA Version/Condition: 7.1
Platform: Linux
Platform (Other): null
O/S Version: Suse Linux
 
Issue
'su - <username>' on SuSE prompts for password but not passcode. 
'su <username>' prompts for passcode as expected.
Confirmed /etc/pam.d/su is configured correctly as below.

#%PAM-1.0
#auth     sufficient     pam_rootok.so
#auth     include        common-auth
auth    required        pam_securid.so
account  sufficient         pam_rootok.so
account  include        common-account
password include        common-password
session  include        common-session
session  optional       pam_xauth.so
Resolution
1. Confirm su <username> is working fine. If not, please refer to the pam agent documentation for detailed configuration guide. 

2. Edit /etc/pam.d/su-l file, comment all lines starting with auth and add the below line:
auth    required        pam_securid.so

 
Notes
By now, the issue is only spotted on SUSE. 
The issue cannot be reproduced on RHEL.