PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Samba PDC - Probleme mit Login-Script und Windows Profilen



trequ
12.08.08, 16:33
Hallo.

Ich hab mal ein paar Fragen zu Samba als Domänencontroller.

Ich hab das Ganze mal mit Fedora 9 installiert.
Domäne erzeugt, User erzeugt und so weiter, wie das halt in recht vielen Tutorials beschrieben wird.

Ich sollte vielleicht noch anmerken, dass das meine erste Linux Lern-Installation ist, die aber bisher recht gut funktioniert.

Folgende Punkte sind mir noch net klar:

1. Ich hab eine Domäne erzeugt und kann mich mit den Usern root und daniel an einem Windows PC der in dieser Domäne hängt anmelden.
Allerdings wird das Login Script nicht ausgeführt.
Ich hab die Datei mit Windows erstellt (Zeilenumbrüche müssten also passen) und es steht im prinzip nur ein "echo Hallo" und ein "pause" Befehl zum Testen drin.
Warum läuft das Script nicht an?

2. Ich hätte erwartet, dass die User Profile und die ganzen Einstellungen auf dem PDC in diesem profile Ordner gespeichert werden, dass Windows dann auf allen Clients gleich aussieht... tut es aber nicht. Der Ordner bleibt einfach leer. Warum?

Hier meine smb.conf:

[global]
workgroup = PCTEX.DE
server string = pctex.de PDC Server
passdb backend = tdbsam
log file = /var/log/samba/log.%m
max log size = 50
logon drive = M:
logon script = %u.bat
domain logons = Yes
os level = 65
preferred master = Yes
domain master = Yes

[homes]
comment = Home Drive
read only = No
browseable = No

[netlogon]
comment = Network Logon Service
path = /home/samba/netlogon
read only = No
guest ok = Yes


Hier meine Ordnerstruktur:

/home/samba/:
insgesamt 16
drwxrwxrwx 4 root root 4096 10. Aug 16:57 .
drwxr-xr-x 8 root root 4096 10. Aug 17:05 ..
drwxrwxrwx 2 root root 4096 10. Aug 21:30 netlogon
drwx------ 3 root root 4096 10. Aug 16:58 profile

/home/samba/netlogon:
insgesamt 12
drwxrwxrwx 2 root root 4096 10. Aug 21:30 .
drwxrwxrwx 4 root root 4096 10. Aug 16:57 ..
-rwxr--r-- 1 daniel daniel 23 10. Aug 21:30 daniel.bat

/home/samba/profile:
insgesamt 12
drwx------ 3 root root 4096 10. Aug 16:58 .
drwxrwxrwx 4 root root 4096 10. Aug 16:57 ..
drwx------ 2 daniel daniel 4096 10. Aug 16:58 daniel

/home/samba/profile/daniel:
insgesamt 8
drwx------ 2 daniel daniel 4096 10. Aug 16:58 .
drwx------ 3 root root 4096 10. Aug 16:58 ..

Wäre für Hilfe dankbar,
Daniel

Sam Fisher
13.08.08, 12:35
Hallo !
Warum das logon-Script nicht ausgeführt wird kann ich leider nicht sagen, aber damit deine Profile auf dem Server gespeichert werden, musst du folgendes konfigurieren.

Auszug aus meiner smb.conf

map to guest = Bad User
logon path = \\%L\%U
logon home = \\%L\%U\.profile
logon drive = P:
usershare allow guests = Yes
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = yes
profile acls = yes
read only = No
inherit acls = Yes
[profiles]
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700

Dir fehlt der logon path. Des weiteren muss der Ordner auf dem Server bereits existieren und er muss natürlich auch schreibbar für den Benutzer sein.

Ich hoffe das hilft dir etwas.
Viele Grüße
Sam

trequ
17.08.08, 17:04
Hab den Fehler gefunden:

%u und %U ist ein Unterschied.

Praktisch, dass es natürlich nirgends in der Samba Doku eine Liste gibt... :(

Läuft jetzt, danke.