Article 4X0SS pam_script.so access NFS mount

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.latest?d=yIl2AUoC8zA latest?i=8nwFTbueAWM:pFMtasiRUf4:F7zBnMy latest?i=8nwFTbueAWM:pFMtasiRUf4:V_sGLiP latest?d=qj6IDK7rITs latest?i=8nwFTbueAWM:pFMtasiRUf4:gIN9vFw8nwFTbueAWM
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments