Mats Hemgren
2004-Mar-19 22:18 UTC
[Samba] Win2k/XP doesn't execute logon.bat while logging in to Samba PDC
Hi all! I'm going mad about getting my shares mapped to my win2k and winXP machines from my Samba PDC Version 3.0.2 on Debian. Win-machines doesn't seem to execute logon.bat at all, except when i log on as root. I've set the ownership and chmod 0775 all logon.bat files to eatch user on my network. Am i just blind or are there something obvious/very wrong with my config? my smb.conf #======================= Global Settings ====================== [global] panic action = /usr/share/samba/panic-action %d netbios name = MIDIAN workgroup = hemgren.com guest ok = no invalid users = bin deamon sys man mail ftp admin users = root administrat?r mats hosts allow = 192.168.64. domain admin group = root domain admin users = mats log level = 2 log file = /var/log/samba/log.%m max log size = 1000 debug timestamp = yes logon path /home/%L/profiles/ logon script = logon.bat security = user encrypt passwords = true socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192 time server = yes # --- Browser Control Options --- local master = yes . os level = 65 domain master = yes preferred master = yes # --- End of Browser Control Options --- wins support = yes name resolve order = lmhosts host wins bcast preserve case = yes short preserve case = yes unix password sync = false domain logons = yes #======================= Share Definitions ====================== [homes] comment = Home Directories browseable = yes writable = yes create mask = 0775 directory mask = 0775 [misc] comment = misc path = /share/one browsable = yes writeable = yes create mask = 0775 directory mask = 0775 [anime] comment = anime path = /share/two browsable = yes writeable = yes create mask = 0775 directory mask = 0775 [hanna] comment = hanna path = /home/hanna browsable = yes writeable = yes create mask = 0775 directory mask = 0775 [www] comment = www path = /var/www browsable = yes writable = yes create mask = 0775 directory mask = 0775 [mats] comment = mats path = /home/mats browsable = yes writable = yes create mask = 0775 directory mask = 0775 [netlogon] comment = Network Logon Service path = /home/%L/netlogon public = yes writable = no browsable = yes [profiles] comment = Roaming Profiles Service path = /home/profiles writable = yes create mask = 0700 directory mask = 0700 browsable = no
RRuegner
2004-Mar-20 10:33 UTC
[Samba] Win2k/XP doesn't execute logon.bat while logging in to Samba PDC
Mats Hemgren schrieb:> Hi all! > > I'm going mad about getting my shares mapped to my win2k and winXP machines from my Samba PDC Version 3.0.2 on Debian. > > Win-machines doesn't seem to execute logon.bat at all, except when i log on as root. I've set the ownership and chmod 0775 all logon.bat files to eatch user on my network. > > Am i just blind or are there something obvious/very wrong with my config? > > my smb.conf > > > #======================= Global Settings ======================> > [global] > panic action = /usr/share/samba/panic-action %d > netbios name = MIDIAN > workgroup = hemgren.com > guest ok = no > invalid users = bin deamon sys man mail ftp > admin users = root administrat?r mats > hosts allow = 192.168.64. > domain admin group = root > domain admin users = mats > log level = 2 > log file = /var/log/samba/log.%m > max log size = 1000 > debug timestamp = yes > logon path /home/%L/profiles/ > logon script = logon.bat > security = user > encrypt passwords = true > socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192 > time server = yes > # --- Browser Control Options --- > local master = yes > . os level = 65 > domain master = yes > preferred master = yes > # --- End of Browser Control Options --- > wins support = yes > name resolve order = lmhosts host wins bcast > preserve case = yes > short preserve case = yes > unix password sync = false > domain logons = yes > > #======================= Share Definitions ======================> > [homes] > comment = Home Directories > browseable = yes > writable = yes > create mask = 0775 > directory mask = 0775 > > [misc] > comment = misc > path = /share/one > browsable = yes > writeable = yes > create mask = 0775 > > directory mask = 0775 > > [anime] > comment = anime > path = /share/two > browsable = yes > writeable = yes > create mask = 0775 > directory mask = 0775 > > [hanna] > comment = hanna > path = /home/hanna > browsable = yes > writeable = yes > create mask = 0775 > directory mask = 0775 > > [www] > comment = www > path = /var/www > browsable = yes > writable = yes > create mask = 0775 > directory mask = 0775 > > [mats] > comment = mats > path = /home/mats > browsable = yes > writable = yes > create mask = 0775 > directory mask = 0775 > > [netlogon] > comment = Network Logon Service > path = /home/%L/netlogon > public = yes > writable = no > browsable = yes > > [profiles] > comment = Roaming Profiles Service > path = /home/profiles > writable = yes > create mask = 0700 > directory mask = 0700 > browsable = no >Hi, perhaps you forgot that you have to write the bat file with a windows editor? Regards
Alex Forrow
2004-Mar-22 00:13 UTC
[Samba] Win2k/XP doesn't execute logon.bat while logging in toSamba PDC
There are too many possibilities to pin-point the problem. I do notice, however that there are errors in your smb.conf unless I'm mistaken:> logon path /home/%L/profiles/For a start you need a '=' and also this should be a windows path telling the clients where to find the users profile. For example, mine is: logon path = \\%L\Profiles\%U Showing that the user's profile is on the 'Profiles' share of the PDC under a directory named as the username. Not sure if this is related. Another point: You use %L a lot. Are you aware that this is just the name of the PDC, looks like you want %U, the username of the connected user. Hope these points help If you still can't get it working try just running the logon script manually (run \\servername\netlogon\logon.bat) or have a look at the logs (up the log level if necessary) Alex Forrow -----Original Message----- From: samba-bounces+alex-mailinglists=forrow.com@lists.samba.org [mailto:samba-bounces+alex-mailinglists=forrow.com@lists.samba.org] On Behalf Of Mats Hemgren Sent: 19 March 2004 22:17 To: samba@lists.samba.org Subject: [Samba] Win2k/XP doesn't execute logon.bat while logging in toSamba PDC Hi all! I'm going mad about getting my shares mapped to my win2k and winXP machines from my Samba PDC Version 3.0.2 on Debian. Win-machines doesn't seem to execute logon.bat at all, except when i log on as root. I've set the ownership and chmod 0775 all logon.bat files to eatch user on my network. Am i just blind or are there something obvious/very wrong with my config? my smb.conf #======================= Global Settings ====================== [global] panic action = /usr/share/samba/panic-action %d netbios name = MIDIAN workgroup = hemgren.com guest ok = no invalid users = bin deamon sys man mail ftp admin users = root administrat?r mats hosts allow = 192.168.64. domain admin group = root domain admin users = mats log level = 2 log file = /var/log/samba/log.%m max log size = 1000 debug timestamp = yes logon path /home/%L/profiles/ logon script = logon.bat security = user encrypt passwords = true socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192 time server = yes # --- Browser Control Options --- local master = yes . os level = 65 domain master = yes preferred master = yes # --- End of Browser Control Options --- wins support = yes name resolve order = lmhosts host wins bcast preserve case = yes short preserve case = yes unix password sync = false domain logons = yes #======================= Share Definitions ====================== [homes] comment = Home Directories browseable = yes writable = yes create mask = 0775 directory mask = 0775 [misc] comment = misc path = /share/one browsable = yes writeable = yes create mask = 0775 directory mask = 0775 [anime] comment = anime path = /share/two browsable = yes writeable = yes create mask = 0775 directory mask = 0775 [hanna] comment = hanna path = /home/hanna browsable = yes writeable = yes create mask = 0775 directory mask = 0775 [www] comment = www path = /var/www browsable = yes writable = yes create mask = 0775 directory mask = 0775 [mats] comment = mats path = /home/mats browsable = yes writable = yes create mask = 0775 directory mask = 0775 [netlogon] comment = Network Logon Service path = /home/%L/netlogon public = yes writable = no browsable = yes [profiles] comment = Roaming Profiles Service path = /home/profiles writable = yes create mask = 0700 directory mask = 0700 browsable = no -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba