Solved

pam_mount errot

Posted on 2008-06-20
1
662 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 Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Currently, there is not an RPM package available under the RHEL/Fedora/CentOS distributions that gives you a quick and easy way to allow PHP to interface with Oracle. As a result, I have included a set of instructions on how to do this with minimal …
rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
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…
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…

743 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

12 Experts available now in Live!

Get 1:1 Help Now