pam_script.so access NFS mount
by rootus from LinuxQuestions.org on (#4X0SS)
I have setup authentication with a script with pam.
auth required pam_script.so dir=/etc/pam-script.d
Works fine
But when I try
auth required pam_script.so dir=/net/nfsfileserver/pam-script.d
it doesn't work any more.
also when I try to access a nfs mount from within the "/etc/pam-script.d/pam_script_auth" script I get "permission denied"
With pam_exec.so same result.
I seems that I can't access a NFS mount from pam_script.so or pam_exec.so.
Is there a way around this?
With pam_exec same result.
I use centos 7.


auth required pam_script.so dir=/etc/pam-script.d
Works fine
But when I try
auth required pam_script.so dir=/net/nfsfileserver/pam-script.d
it doesn't work any more.
also when I try to access a nfs mount from within the "/etc/pam-script.d/pam_script_auth" script I get "permission denied"
With pam_exec.so same result.
I seems that I can't access a NFS mount from pam_script.so or pam_exec.so.
Is there a way around this?
With pam_exec same result.
I use centos 7.