pam_ssh_agent_auth icon indicating copy to clipboard operation
pam_ssh_agent_auth copied to clipboard

Add PAM_RUSER format specificier

Open msantos opened this issue 7 years ago • 1 comments

Add a new "%r" format specifier to represent the PAM remote user:

auth sufficient pam_ssh_agent_auth.so file=/etc/keys/%r

This change allows programs, like su, that set RUSER to the origin user and USER to the destination user, to name the key according to the user calling the program:

# auser -> root
/etc/keys/%r # equivalent to /etc/keys/auser
/etc/keys/%u # equivalent to /etc/keys/root

msantos avatar Sep 07 '17 14:09 msantos

specificier -> specifier

msantos avatar Aug 22 '19 12:08 msantos