You are not logged in.

#1 2011-05-17 16:09:16

walterjwhite
Member
Registered: 2011-05-01
Posts: 207

pam_mount + cifs [solved]

Hi all,

I am attempting to configure pam_mount with cifs to have access to windows shares upon logging in.  In dmesg, I get this error:

CIFS VFS: cifs_mount failed w/return code = -6

Here is my pam_mount.config.xml

<volume user="walterjwhite" fstype="cifs" server="mercury" path="//mercury/folder" mountpoint="/mercury-hostname/folder" options="credentials=/home/walterjwhite/.windows-share,ip=10.3.56.93"/>



Walter

Last edited by walterjwhite (2011-06-08 01:38:15)

Offline

#2 2011-05-19 01:42:59

premier
Member
Registered: 2006-12-07
Posts: 16

Re: pam_mount + cifs [solved]

I'm assuming you've setup pam to load the pam_mount.so module at the appropriate time. 

Try changing your path to "folder" rather than "//mercury/folder".  (error code 6 is "No such share")

This parameter in your config file should give more information.
<debug enable="2" />

Offline

#3 2011-05-19 02:20:40

walterjwhite
Member
Registered: 2011-05-01
Posts: 207

Re: pam_mount + cifs [solved]

Hi,

Thanks.  I will try that debug, I tried debug=1, but I'll give that a try.


Walter

Offline

#4 2011-05-20 14:36:51

walterjwhite
Member
Registered: 2011-05-01
Posts: 207

Re: pam_mount + cifs [solved]

Hi Premier,

I got it working, thanks for your help.  I specified the path incorrectly on the server.  Once I set it relative to root, everything worked.


Walter

Offline

Board footer

Powered by FluxBB