[CentOS] pam_mount

Tue Feb 16 11:34:51 UTC 2010
Marcus Moeller <mail at marcus-moeller.de>

Hi.

>> I am a bit confused about the usage of pam_mount.
>>
>> Here is my /etc/pam.d/system-auth:
>>
>> auth        required      pam_env.so
>> auth        required      pam_mount.so
>>
>
> add use_first_pass to this??

In auth stage the pam_mount requests it's passwd from stdin and passes
it to the other modules.

>> If pam_mount.so is listed in the session definition I will be asked
>> for the password a second time during SSH login:

As noted, the second password request is called in session stage which
does not accept pass options (and should not even ask for a password
afaik)

>> So my question is: what is the session entry used for within pam_mount
>> (as the usage is suggested in the man page and in the docs)?

Best Regards
Marcus