Solved

pam_mount errot

Posted on 2008-06-20
1
668 Views
Last Modified: 2013-12-16
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
Comment
Question by:shogun35
1 Comment
 
LVL 32

Accepted Solution

by:
Kamran Arshad earned 250 total points
ID: 21830017
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

777 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