System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

pam_mount does not work on suse

iinfi1
Super Advisor

pam_mount does not work on suse

i needed pam_mount to mount cifs shares automatically

the codes are as below

--------------------
susedesktop:~ # cat /etc/pam.d/login
#%PAM-1.0
auth optional pam_mount.so
auth required pam_securetty.so
auth include common-auth
auth required pam_nologin.so
account include common-account
password include common-password
session include pam_mkhomedir.so
session include common-session
session required pam_lastlog.so nowtmp
session required pam_resmgr.so
session optional pam_mail.so standard

susedesktop:~ # cat /etc/pam.d/common-auth
auth required pam_env.so
auth required pam_unix2.so

susedesktop:~ # cat /etc/pam.d/common-session
#
# /etc/pam.d/common-session - session-related modules common to all services
#
# This file is included from other service-specific PAM config files,
# and should contain a list of modules that define tasks to be performed
# at the start and end of sessions of *any* kind (both interactive and
# non-interactive). The default is pam_unix2.
#
session optional pam_mkhomedir.so
session required pam_limits.so
session required pam_unix2.so
session optional pam_mount.so
susedesktop:~ #
--------------------

the moment a user logs in the /var/log/messages show:


=======================
Feb 15 01:35:22 susedesktop sshd[3433]: pam_unix2(sshd:auth): getting password (0x00000180)
Feb 15 01:35:27 susedesktop sshd[3433]: pam_unix2(sshd:auth): user 'cat\user6' granted access
Feb 15 01:35:27 susedesktop sshd[3433]: pam_unix2(sshd:account): user 'CAT\user6' OK
Feb 15 01:35:27 susedesktop sshd[3433]: pam_unix2(sshd:account): user 'CAT\user6' granted access
Feb 15 01:35:27 susedesktop sshd[3431]: Accepted keyboard-interactive/pam for cat\\user6 from 192.168.5.13 port 2769 ssh2
Feb 15 01:35:27 susedesktop sshd[3434]: pam_mount(pam_mount.c:413) error trying to retrieve authtok from auth code
Feb 15 01:35:27 susedesktop sshd[3434]: pam_mount(pam_mount.c:159) conv->conv(...): Conversation error
Feb 15 01:35:27 susedesktop sshd[3434]: pam_mount(pam_mount.c:416) error trying to read password
=======================

could you plz let me know why the pam_mount showed errors
5 REPLIES
iinfi1
Super Advisor

Re: pam_mount does not work on suse

added:

i am using SUSE desktop 10.2.
Ciro Iriarte
Valued Contributor

Re: pam_mount does not work on suse

I think it should state:

---------
auth optional pam_mount.so use_first_pass
---------
iinfi1
Super Advisor

Re: pam_mount does not work on suse

hi

i am afraid i have tried that too already. there is no change in the error.
i have formatted my machine and went through the entire process again.
no success.
pam_mount works fine in RHEL5 with the same entries in the config file. i am clueless as to what is going wrong.
Steven E. Protter
Exalted Contributor

Re: pam_mount does not work on suse

Shalom,

Might be a pam bug.

Perhaps patch your system and see if you get better results after update and reboot.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
iinfi1
Super Advisor

Re: pam_mount does not work on suse

alright sir,

i will try just that.
thank you