RHEL 6.5 web application PAM AUTH pam_oddjob_mkhomedir
Solution 1:
On ubuntu 18 I had a similar problem, seems like R-Studio community version only respects "auth" not "session"
Workaround was to introduce /etc/pam.d/rstudio as follows:
auth [success=ok new_authtok_reqd=ok ignore=ignore user_unknown=bad default=die] pam_exec.so /etc/pam.d/mkhome.sh
@include common-auth
@include common-account
@include common-password
@include common-session
with /etc/pam.d/mkhome.sh just /bin/su -l $PAM_USER -c exit 2> /dev/null