[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Samba 3 und Windows XP Profile



Hallo,

hab eigentlich schon seit langem Samba als PDC auf mehreren Systemen am laufen. Früher habe ich allerdings Fedora 3 benutzt. Jetzt unter Debian ist mir schon des Öfteren passiert, wenn ich zum Beispile Windows XP, frisch installiert neuer Rechnername einer Domäne unter Samba 3 hinzufügen will, daß er die Profile nicht speichern kann. Die Maschinekonten werden on-the-fly angelegt. Der Beitritt als solches zur Domäne klappt aber mit root unter XP. Mlede ich mich dann aber an wird auf dem Samba PC unter dem Profilordner, siehe smb.conf.zwar der Benutzername angelegt aber nichts weiter. Der Ordner bekommt nämlich "root" Rechte, also "root" wird der Eogentümer. Da kann ja auch nicht klappen, weil der Eigentümer von dem Profilordner auf meinem Samba PDC natürlich der Benutzer von meinem Windows XP sein muss. Natürlich habe ich zuerst einen Linux Benutzer angelegt. Auch habe ich den mit smbpasswd -a Samba bekanntgemacht. Das kuriose ist der Fehler tritt nicht immer auf. Manchmal klappt das auch und der Profilordner von XP auf Samba keommt die richtigen Rechte. Dann klappen auch die folgenden An- und Abmeldungen. Was kann das sein ?

Hier ist der samba.log Auszug alls es nicht geklappt hat mit den Rechten, wie man sieht bekommt der die UID "Null", die ja "root"gehört.

Error writing 4 bytes to client. -1. (Die Verbindung wurde vom Kommunikationspartner zurückgesetzt)
[2005/12/26 00:27:06, 1] smbd/service.c:make_connection_snum(642)
alexpc (192.168.0.143) connect to service Profiles initially as user alexander (uid=0, gid=1004) (pid 7087)
[2005/12/26 00:27:12, 1] smbd/service.c:make_connection_snum(642)
alexpc (192.168.0.143) connect to service Netlogon initially as user alexander (uid=0, gid=1004) (pid 7087)
[2005/12/26 00:27:13, 1] smbd/service.c:make_connection_snum(642)
alexpc (192.168.0.143) connect to service alexander initially as user alexander (uid=0, gid=1004) (pid 7087)
[2005/12/26 00:27:13, 1] smbd/service.c:make_connection_snum(642)
alexpc (192.168.0.143) connect to service Hoerspiele initially as user alexander (uid=0, gid=1004) (pid 7087)
[2005/12/26 00:28:44, 0] smbd/reply.c:reply_lockingX(4675)
reply_lockingX: Error : oplock break from client for fnum = 8502 and no oplock granted on this file (unsorted/GMS - Ultra4.mp3).


Hier ist der log als es geklappt hat:

smbd version 3.0.14a-Debian started.
 Copyright Andrew Tridgell and the Samba Team 1992-2004
[2005/12/26 00:53:37, 1] smbd/service.c:make_connection_snum(642)
alexpc (192.168.0.143) connect to service Profiles initially as user alexander (uid=1004, gid=1004) (pid 7140)
[2005/12/26 00:53:39, 1] smbd/service.c:close_cnum(830)
 alexpc (192.168.0.143) closed connection to service Profiles
[2005/12/26 00:53:44, 1] smbd/service.c:make_connection_snum(642)
alexpc (192.168.0.143) connect to service Profiles initially as user alexander (uid=1004, gid=1004) (pid 7140)
[2005/12/26 00:53:48, 1] smbd/service.c:make_connection_snum(642)
alexpc (192.168.0.143) connect to service Netlogon initially as user alexander (uid=1004, gid=1004) (pid 7140)
[2005/12/26 00:53:49, 1] smbd/service.c:make_connection_snum(642)
alexpc (192.168.0.143) connect to service alexander initially as user alexander (uid=1004, gid=1004) (pid 7140)
[2005/12/26 00:53:49, 1] smbd/service.c:make_connection_snum(642)
alexpc (192.168.0.143) connect to service Hoerspiele initially as user alexander (uid=1004, gid=1004) (pid 7140)
[2005/12/26 00:54:13, 1] smbd/service.c:make_connection_snum(642)
alexpc (192.168.0.143) connect to service Profiles initially as user alexander (uid=1004, gid=1004) (pid 7140)
[2005/12/26 00:54:14, 1] smbd/service.c:close_cnum(830)
 alexpc (192.168.0.143) closed connection to service Profiles
[2005/12/26 00:54:14, 1] smbd/service.c:close_cnum(830)
 alexpc (192.168.0.143) closed connection to service Netlogon


Hier ist meine smb.conf:

[global]
workgroup = base.local
netbios name = base
os level = 65
encrypt passwords = yes
preferred master = yes
domain master = yes
local master = yes
security = user
domain logons = yes
wins support = yes
logon path = \\%L\Profiles\%u\%m
logon script = %U.bat
add machine script = /usr/sbin/useradd -d /dev/null -g 300 -s /bin/false %u
guest account = nobody
printer admin = root, @ntadmins
load printers = yes
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
dos charset = CP850
unix charset = ISO8859-15
display charset = ISO8859-15

[printers]
#public = yes
#writable = no
guest ok = yes
comment = Alle Drucker
path = /var/spool/samba
create mask = 0700
printable = yes
browseable = yes

[Netlogon]
path = /usr/local/samba/lib/netlogon
writable = no
browsable = no
# write list = @ntadmins

[Profiles]
path = /home/samba-ntprof
read only = no
create mask = 0600
directory mask = 0700


Gruß



Reply to: