pam_mount and openssh

W. Michael Petullo mike at flyn.org
Mon Aug 16 02:41:07 UTC 2004


> I'm trying to get pam_mount going to mount a samba share on login over
> openssh, but it doesn't seem to be working.
> 
> It seems that after authentication, openssh  is launching a new
> process which calls pam_open_session, and so the pam_mount module
> can't access the data it stored when authenticating.
> 
> Has anyone else hit this problem and successfully worked around it?
> 
> Here's the debug output (I threw some of my own debug statements into the code)
> 
> Aug 16 09:11:27 vpntest sshd[16437]: pam_sm_authenticate called
> Aug 16 09:11:27 vpntest sshd[16437]: pam_mount: enter read_password
> Aug 16 09:11:30 vpntest sshd[16437]: pam_sm_authenticate saved, pamh
> handle 134863464
> Aug 16 09:11:30 vpntest sshd[16438]: pam_sm_open_sesion pamh: 134863464
> Aug 16 09:11:30 vpntest sshd[16438]: pam_mount: user is cjensen
> Aug 16 09:11:30 vpntest sshd[16438]: pam_mount: error trying to
> retrieve authtok from auth code

Have you read the portion of the FAQ that addresses OpenSSH?

-- 
Mike

:wq





More information about the Pam-list mailing list