pam_mount errot

Posted on 2008-06-20
Last Modified: 2013-12-16

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="" 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// 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

Question by:shogun35
1 Comment
LVL 32

Accepted Solution

Kamran Arshad earned 250 total points
ID: 21830017

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Linux Scripting 3 102
Which Linux flavors will this run on? 6 76
add some character at the end of line in vi 7 63
Error Message during CentOS 7 Minimal Install 3 34
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now