On 05/15/2012 09:44 AM, zingalo wrote:
On 05/07/2012 05:33 PM, Buchan Milne wrote:On Sunday, 6 May 2012 10:08:23 zingalo wrote:Hi, i have problems mounting on the client ubuntu the users's home directories that are on a server debian squeeze with ldap-samba. First of all, which is the correct syntax for homeDirectory attribute if that home is on a server. I wrote: homeDirectory: //192.168.5.219/users/username$ ldapsearch -x -s base -b cn=Subschema attributetypes|perl -p0e 's/\n //g'| grep homeDirectory attributeTypes: ( 1.3.6.1.1.1.1.3 NAME 'homeDirectory' DESC 'The absolute path to the home directory' EQUALITY caseExactIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) Note, it does not say a URI or a<sic>Universal</sic> Naming Convention share name.but pam_mount tells me volume not found. am not sure of samba and smbldap configurations also. could you take a look of my conf files? this is smb.conf:[...][homes] path = /users/%u browseable = no writable = yes valid users = %S read only = no guest ok = no admin users = %u write list = %u read list = %u create mask = 0700 directory mask = 0700[...]and this is smbldap.conf:[...]# Home directory # Ex: userHome="/home/%U" userHome="/users/%U"[...] Why not include your pam_mount configuration? You should be able to do something like: <volume fstype="cifs" server="192.168.5.219" path="%(USER)" mountpoint="~" /> Of course, I wonder about setups where the Unix side is Unixy for everything, except the file sharing (hint: NFS, automount maps). Regards, Buchanhere i am thanks for your reply. this is pam_mount configuration: <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE pam_mount SYSTEM "pam_mount.conf.xml.dtd"> <!-- See pam_mount.conf(5) for a description. --> <pam_mount> <!-- debug should come before everything else, since this file is still processed in a single pass from top-to-bottom --> <debug enable="2" /> <!-- Volume definitions --> <volume user="%(USER)" fstype="cifs" server="192.168.5.219" path="/users/%(USER)" noroot="1" mountpoint="/home/%(USER)" ssh="0" /> <!-- pam_mount parameters: General tunables --> <!--luserconf name=".pam_mount.conf.xml" --> <!-- Note that commenting out mntoptions will give you the defaults. You will need to explicitly initialize it with the empty string to reset the defaults to nothing. --> <mntoptions allow="nosuid,nodev,loop,encryption,fsck,nonempty,allow_root,allow_other" /> <!-- <mntoptions deny="suid,dev" /> <mntoptions allow="*" /> <mntoptions deny="*" /> --> <mntoptions require="nosuid,nodev" /> <logout wait="0" hup="0" term="0" kill="0" /> <!-- pam_mount parameters: Volume-related --> <mkmountpoint enable="1" remove="true" /> <smbmount> smbmount //192.168.5.219/users/%(USER) /home/%(USER)</smbmount> <umount> umount /home/%(USER) </umount> </pam_mount> it doesn't run. trying also from the command line: sudo mount.cifs //192.168.5.219/users /mnt/samba/Dati/ user=**** password=**** it asks me a password again. writing the server root password it tells No such device or address. Writing a wrong password it tells "Permission denied". Maybe this argument is out of the scope of this ml or maybe not. Hope someone could help me. Thanks
Hi,trying to mount locally an home directory it runs asking root server password but it doesn't mount the home directory after login. In homeDirectory attribute i tried with both: "/users/username" and "//amahoro/users/username". The first one is relative path to the server, the second one is absolute path to the server from the client. In both cases i have the same errors:
access("/users/leonidas/.hushlogin", F_OK) = -1 ENOENT (No such file or directory) stat64("/users/leonidas/.pam_environment", 0xbfe63ed0) = -1 ENOENT (No such file or directory) stat64("/users/leonidas/.pam_environment", 0xbfe63ed0) = -1 ENOENT (No such file or directory) stat64("/users/leonidas/.cache/motd.legal-displayed", 0xbfe6421c) = -1 ENOENT (No such file or directory) open("/users/leonidas/.cache/motd.legal-displayed", O_WRONLY|O_CREAT|O_EXCL|O_LARGEFILE, 0644) = -1 ENOENT (No such file or directory) stat64("/var/mail/leonidas", 0xbfe642cc) = -1 ENOENT (No such file or directory)
access("//amahoro/users/leonidas/.hushlogin", F_OK) = -1 ENOENT (No such file or directory) stat64("//amahoro/users/leonidas/.pam_environment", 0xbfe63ed0) = -1 ENOENT (No such file or directory) stat64("//amahoro/users/leonidas/.pam_environment", 0xbfe63ed0) = -1 ENOENT (No such file or directory) stat64("//amahoro/users/leonidas/.cache/motd.legal-displayed", 0xbfe6421c) = -1 ENOENT (No such file or directory) open("//amahoro/users/leonidas/.cache/motd.legal-displayed", O_WRONLY|O_CREAT|O_EXCL|O_LARGEFILE, 0644) = -1 ENOENT (No such file or directory) stat64("/var/mail/leonidas", 0xbfe642cc) = -1 ENOENT (No such file or directory)
This is pam_mount configuration: <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE pam_mount SYSTEM "pam_mount.conf.xml.dtd"> <!-- See pam_mount.conf(5) for a description. --> <pam_mount> <!-- debug should come before everything else, since this file is still processed in a single pass from top-to-bottom --> <debug enable="2" /> <!-- Volume definitions --><volume user="%(USER)" fstype="cifs" server="amahoro" path="/users/%(USER)" noroot="1" mountpoint="/home/%(USER)" ssh="0" />
<!-- pam_mount parameters: General tunables --> <!--luserconf name=".pam_mount.conf.xml" --> <!-- Note that commenting out mntoptions will give you the defaults. You will need to explicitly initialize it with the empty string to reset the defaults to nothing. --><mntoptions allow="nosuid,nodev,loop,encryption,fsck,nonempty,allow_root,allow_other" />
<!-- <mntoptions deny="suid,dev" /> <mntoptions allow="*" /> <mntoptions deny="*" /> --> <mntoptions require="nosuid,nodev" /> <logout wait="0" hup="0" term="0" kill="0" /> <!-- pam_mount parameters: Volume-related --> <mkmountpoint enable="1" remove="true" /><smbmount> mount.cifs //amahoro/users/%(USER) /home/%(USER) -o user=%(USER)</smbmount>
<umount> umount /home/%(USER) </umount> </pam_mount> Do you have ideas where is the problem? Thanks