[Samba] mounting volumes : pammount vs gvfs

Manu Baylac manu at ldd.fr
Fri Aug 7 06:29:42 MDT 2009


Hi list.

First sorry for my poor english, so not easy for me to explain exactly 
my problem.

My problem is that files/ directories created in my mounted volumes 
don't have the rights I expect.

Here is my smb.conf :

[...]
[Docs]
   comment = Docs
   path = /home/Docs
   browseable = yes
   writeable = yes
   force group = docs
   create mask = 0770
   directory mask = 0770
   force create mode = 0770
   force directory mode = 0770
[...]

If I mount my volumes with gvfs, no problem :
(testJL are files created directly in the mounted volume and 
testJLDirect ones are drag & drop from gnome panel)

myserver:/home/Docs# ls -al |grep test
drwxrwx---  2 jean-luc  docs      4096 aoû  6 17:22 testJL
drwxrwx---  2 jean-luc  docs      4096 aoû  7 13:13 testJLDirect
-rwxrwx---  1 jean-luc  docs         0 aoû  7 13:13 testJLDirect.txt
-rwxrwx---  1 jean-luc  docs         0 aoû  6 17:22 testJL.txt


But I want to use pam_mount, since all users under Ubuntu have "roaming 
profile", with their home mounted by nfs and data (samba) volumes with 
smbfs.

In my /etc/security/pam_mount.conf.xml :

<volume mountpoint="/media/Docs" path="Docs" server="server" sgrp="docs" 
fstype="cifs" />

And here the results :

myserver:/home/Docs# ls -al |grep test
drwxr-xr-w  2 jean-luc  docs      4096 aoû  6 17:22 testJL
drwxrwx---  2 jean-luc  docs      4096 aoû  7 13:13 testJLDirect
-rw-r--r--  1 jean-luc  docs         0 aoû  7 13:13 testJLDirect.txt
-rw-r--r--  1 jean-luc  docs         0 aoû  6 17:22 testJL.txt

If I mount the volumes by hand in command line with :
#mount.cifs //server/Docs /media/docs -o "user=jean-luc%passwd",
same problems/ rights than above...

Any ideas ?
Thanks !

Manu












More information about the samba mailing list