• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 700
  • Last Modified:

pam_mount errot

Hello

I am trying to get pam mount to mount some cifs shares upon user login. It seems that pam_mount is not passing the password off to volumes.
on pam_mount.conf.xml  I have a line like this:
<volume user="*" fstype="cifs" server="192.168.1.12" path="%(USER)"
mountpoint="~/HOME" option="dmaks=0700,workgroup=SAMBAGROUP" />

and I get errors when using a line like that on /var/log/messages:
Jun 17 15:48:21 rador3 kernel: CIFS VFS: cifs_mount failed w/return code = -13
Jun 17 15:48:21 rador3 sshd[11408]: pam_mount(mount.c:109) mount: ne peut monter périphérique de type bloc//192.168.1.12/user1 en lecture seulement
Jun 17 15:48:21 rador3 sshd[11408]: pam_mount(mount.c:949) waiting for mount
Jun 17 15:48:21 rador3 sshd[11408]: pam_mount(pam_mount.c:544) mount of user1 failed
Jun 17 15:48:21 rador3 sshd[11408]: pam_mount(pam_mount.c:140) clean system authtok (0)
Jun 17 15:48:21 rador3 sshd[11408]: pam_mount(misc.c:285) command: pmvarrun [-u] [user1] [-o] [1]
Jun 17 15:48:21 rador3 sshd[11414]: pam_mount(misc.c:56) set_myuid<pre>: (uid=0, euid=0, gid=0, egid=0)
Jun 17 15:48:21 rador3 sshd[11414]: pam_mount(misc.c:56) set_myuid<post>: (uid=0, euid=0, gid=0, egid=0)
Jun 17 15:48:21 rador3 sshd[11408]: pam_mount(pam_mount.c:431) pmvarrun says login count is 6
Jun 17 15:48:21 rador3 sshd[11408]: pam_mount(pam_mount.c:554) done opening session (ret=3)

and the following error messages on dmesg:
CIFS VFS: Send error in SessSetup = -13
CIFS VFS: cifs_mount failed w/return code = -13

So it looks like pam_mount should be getting the password. Any ideas why its not passing it on to volume? Am i missing something?
Anyone have an idea ?

And my file server is a Microsoft 2000 Server


Best Regard







0
shogun35
Asked:
shogun35
1 Solution
 
Kamran ArshadCommented:
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now