cmdln
February 18th, 2008, 04:36 PM
[SOLVED]
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.
for example I have a line like this
<code>
volume user cifs serverip share /home/user/share user=user,uid=user - -
</code>
I get errors when using a line like that
<code>
Feb 18 14:10:41 ubuntu kernel: [55499.235069] CIFS VFS: Send error in SessSetup = -13
Feb 18 14:10:41 ubuntu kernel: [55499.368386] CIFS VFS: cifs_mount failed w/return code = -13
Feb 18 14:10:41 ubuntu kernel: [55499.407393] CIFS VFS: Send error in SessSetup = -13
Feb 18 14:10:41 ubuntu kernel: [55499.540075] CIFS VFS: cifs_mount failed w/return code = -13
</code>
If I specify the users password on the line it does seem to work, but that kind of defeats the purpose.
<code>
volume user cifs serverip share /home/user/share user=user,password=pass,uid=user - -
</code>
I have added @include common-pammount
to /etc/pam.d/gdm, and pam_mount does ask me to reenter my password. 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?
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.
for example I have a line like this
<code>
volume user cifs serverip share /home/user/share user=user,uid=user - -
</code>
I get errors when using a line like that
<code>
Feb 18 14:10:41 ubuntu kernel: [55499.235069] CIFS VFS: Send error in SessSetup = -13
Feb 18 14:10:41 ubuntu kernel: [55499.368386] CIFS VFS: cifs_mount failed w/return code = -13
Feb 18 14:10:41 ubuntu kernel: [55499.407393] CIFS VFS: Send error in SessSetup = -13
Feb 18 14:10:41 ubuntu kernel: [55499.540075] CIFS VFS: cifs_mount failed w/return code = -13
</code>
If I specify the users password on the line it does seem to work, but that kind of defeats the purpose.
<code>
volume user cifs serverip share /home/user/share user=user,password=pass,uid=user - -
</code>
I have added @include common-pammount
to /etc/pam.d/gdm, and pam_mount does ask me to reenter my password. 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?