Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

pam_mount errot

Posted on 2008-06-20
1
Medium Priority
?
694 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 32

Accepted Solution

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

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

704 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