Liebe Helfer,
ich habe einen SAMBA4 Fileserver und einen SAMBA4 DomainController. Ich kann mich mit meinen Ubuntu Clients via Winbind an meinen DomainController authentifizieren. Nun möchte ich, dass automatisch bei der Anmeldung das Home-Laufwerk eingebunden wird. Das Laufwerk kann bzw. wird in Windows oder Ubuntu über den Explorer problemlos eingehängt.
Winbind wurde mit folgender Anleitung erfogreich konfiguriert (https://wiki.ubuntuusers.de/Samba_Winbind/). An dem Punkt "PAM-Mount-Konfiguration" komme ich leider nicht weiter.
Aktuelle Konfigration:
/etc/sercurity/pam_mount.conf
volume * cifs //fileserver.uni-landau.de /HOME /media/windowsshare iocharset=utf8,uid=&,dmask=0700 - -
/etc/sercurity/pam_mount.conf.xml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | <!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="0" /> <!-- Volume definitions --> <!-- pam_mount parameters: General tunables --> <luserconf name=".pam_mount.conf.xml" /> <volume fstype="cifs" server="test.test.de" path="HOME" mountpoint="/media/windowsshare" options="iocharset=utf8,uid=xyz,dmask=0700" /> <!-- 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" /> </pam_mount> |
Serverdaten:
Windows: \\test.test.de\HOME\<benutzername> Linux: smb://test.test.de/HOME/<benutzername>
Vermutlich fehlen nur einzelnen Optionen bzw. mache ich einen Syntaxfehler?
VIELEN DANK für eure HILFE
Bearbeitet von rklm:
Passendes Syntax-Highlighting für HTML