Hi all, I am having problems running a logon script from a Winxp pro client. It appears that the logon script is not being run at all. Win98 runs the script fine, but none of the Winxp pro clients are currently running it. I am running RedHat 7.1 with Samba version 2.2.7-security-rollup-fix. My smb.conf is as follows: [global] netbios name = LOKKI server string = Lokki PDC workgroup = LINUX os level = 99 preferred master = YES domain master = YES local master = YES domain logons = YES socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192 SO_SNDBUF=8192 time server = YES security = user guest ok = NO invalid users = bin deamon sys man postfix mail ftp admin users = @wheel domain admin group = @wheel encrypt passwords = YES log level = 3 log file = /var/log/samba/log.%m logon script = logon.bat logon drive = h: logon home = \\LOKKI\%u #logon path = \\%L\Profiles\%u hosts allow = 10.3.40. wins support = YES add user script = /usr/sbin/useradd -d /dev/null -g workstation -s /bin/false -M %u smb passwd file = /etc/samba/smbpasswd unix password sync = yes passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully* passwd program = /usr/bin/passwd %u #passwd chat debug = yes min password length = 6 null passwords = No printing = lprng [homes] comment = Home Directories valid users = %S read only = No create mask = 0664 directory mask = 0775 [netlogon] path=/home/netlogon public = NO writeable = NO browsable = NO locking = NO [apps] path = /apps read only = No valid users = root @workstation create mask = 0664 directory mask = 0775 [POINT] path = /POINT/Database read only = No valid users = root @workstation create mask = 0664 directory mask = 0775 When I look into the log file for the Winxp pro client that is logging in it is never opening the logon.bat file. I have tried various version of the netlogon share and I can not get it working again. The permissions for the logon.bat file are as follows and it is a DOS file in the /home/netlogon directory: -rwxr--r-- 1 root workstat 493 May 16 12:04 logon.bat Apparently I changed something in my testing and I have no clue as to what I changed. Everything else appears to working normally. Any help on how to get logon scripts running again would be much appreciated. Thanks, Truman Lackey tlackey@dmsidaho.com
I am adding more information on my status: The question that I need to find is why Win98 client have no problem running the logon script and WinXp clients do not even appear to try. When I log onto the domain from a WinXp pro client the home share is getting mapped but the logon script is not getting executed. I have checked the log files and I am in the domain. Initially I had 2 WinXp client using roaming profiles just to test but I decided against using this feature. This may somehow caused WinXp clients to not run the logon script but I am not sure. I have the same symptoms on 4 WinXp clients, and 1 win2000 client. Truman
I have been experiencing the exact same issue as you, and I was wondering if you ever came to a resolution? I didn't see a response on the Samba list! Thanks! List: samba Subject: RE: [Samba] Winxp netlogon script From: "Truman" <tlackey () dmsidaho ! com> Date: 2003-05-16 20:31:28 [Download message RAW] I am adding more information on my status: The question that I need to find is why Win98 client have no problem running the logon script and WinXp clients do not even appear to try. When I log onto the domain from a WinXp pro client the home share is getting mapped but the logon script is not getting executed. I have checked the log files and I am in the domain. Initially I had 2 WinXp client using roaming profiles just to test but I decided against using this feature. This may somehow caused WinXp clients to not run the logon script but I am not sure. I have the same symptoms on 4 WinXp clients, and 1 win2000 client. Truman Khanh Tran Network Operations Sarah Lawrence College
I'm running Samba-2.2.8a on RedHat Linux 7.1, Kernel 2.4.18-24.7.x, glibc-2.2.4-31, on an i686. I understand that kernel-2.4.20-18.7 and glibc-2.2.4-32 is available for RH7.1. If need be, I'll update to 7.3 with the latest kernel and glibc if that will fix the issue. I'd prefer to not take the server down for a lengthy time to do a complete OS upgrade, rather just update the kernel and glibc on RH7.1 if possible. smb.conf: [global] workgroup = ACADEMIC netbios name = SLC3 interfaces = 172.16.0.3 127.0.0.1 bind interfaces only = Yes hosts allow = 172.16. 10. encrypt passwords = Yes name resolve order = wins lmhosts hosts domain admin group = @admin add user script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %m$ unix password sync = yes smb passwd file = /var/samba/private/smbpasswd log level = 1 debug timestamp = yes password level = 1 passwd program = /var/samba/bin/syncpass.sh %u %n passwd chat = *Password* *changed* logon script = scripts\%g.bat logon drive = H: logon home = \\SLC3\%u domain logons = Yes os level = 65 preferred master = True domain master = True wins support = Yes time server = True guest account = ftp [netlogon] path = /var/samba/netlogon browseable = no [homes] comment = home directory support read only = No inherit permissions=yes browseable = no [data] comment = Data Resources path = /var/data admin users = @admin read only = No create mask = 0775 directory mask = 0775 browseable = no -----Original Message----- From: John H Terpstra [mailto:jht@samba.org] Sent: Friday, June 20, 2003 3:42 PM To: Khanh Tran Cc: 'tlackey@dmsidaho.com'; 'samba@lists.samba.org' Subject: RE: [Samba] Winxp netlogon script Folks, For what it is worth, in my testing of samba-3 domain logon behaviour I have found logon script processing totally reliable. The only instance of trouble that I have come across so far was with sites running RedHat 7.3 that did NOT have the glibc and kernel updates. In every case where the updates have been applied there has been no pleoblem. If you want your problems resolved then a little more detail might help. What version of samba? What platform (OS version and updates)? What smb.conf info? How are clients configured? - John T. On Fri, 20 Jun 2003, Khanh Tran wrote:> I have been experiencing the exact same issue as you, and I was > wondering if you ever came to a resolution? I didn't see a response > on the Samba list! > > Thanks! > > List: samba > Subject: RE: [Samba] Winxp netlogon script > From: "Truman" <tlackey () dmsidaho ! com> > Date: 2003-05-16 20:31:28 > [Download message RAW] > > I am adding more information on my status: > The question that I need to find is why Win98 client have no problem > running the logon script and WinXp clients do not even appear to try. > > When I log onto the domain from a WinXp pro client the home share is > getting mapped but the logon script is not getting executed. I have > checked the log files and I am in the domain. > > Initially I had 2 WinXp client using roaming profiles just to test but > I decided against using this feature. This may somehow caused WinXp > clients to not run the logon script but I am not sure. I have the > same symptoms on 4 WinXp clients, and 1 win2000 client. > > Truman > > > Khanh Tran > Network Operations > Sarah Lawrence College > >-- John H Terpstra Email: jht@samba.org
Ok, so now I've upgraded to RedHat Linux 9, Kernel 2.4.20-18.9, glibc-2.3.2-27.9, samba 2.2.8a. My XP workstations still aren't even trying to run the login script. Any more ideas? smb.conf: [global] workgroup = ACADEMIC netbios name = SLC3 interfaces = 172.16.0.3 127.0.0.1 bind interfaces only = Yes hosts allow = 172.16. 10. encrypt passwords = Yes name resolve order = wins lmhosts hosts domain admin group = @admin add user script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %m$ unix password sync = yes smb passwd file = /var/samba/private/smbpasswd log level = 1 debug timestamp = yes password level = 1 passwd program = /var/samba/bin/syncpass.sh %u %n passwd chat = *Password* *changed* logon script = scripts\%g.bat logon drive = H: logon home = \\SLC3\%u domain logons = Yes os level = 65 preferred master = True domain master = True wins support = Yes time server = True guest account = ftp [netlogon] path = /var/samba/netlogon browseable = no [homes] comment = home directory support read only = No inherit permissions=yes browseable = no [data] comment = Data Resources path = /var/data admin users = @admin read only = No create mask = 0775 directory mask = 0775 browseable = no -----Original Message----- From: John H Terpstra [mailto:jht@samba.org] Sent: Friday, June 20, 2003 3:42 PM To: Khanh Tran Cc: 'tlackey@dmsidaho.com'; 'samba@lists.samba.org' Subject: RE: [Samba] Winxp netlogon script Folks, For what it is worth, in my testing of samba-3 domain logon behaviour I have found logon script processing totally reliable. The only instance of trouble that I have come across so far was with sites running RedHat 7.3 that did NOT have the glibc and kernel updates. In every case where the updates have been applied there has been no pleoblem. If you want your problems resolved then a little more detail might help. What version of samba? What platform (OS version and updates)? What smb.conf info? How are clients configured? - John T. On Fri, 20 Jun 2003, Khanh Tran wrote:> I have been experiencing the exact same issue as you, and I was > wondering if you ever came to a resolution? I didn't see a response > on the Samba list! > > Thanks! > > List: samba > Subject: RE: [Samba] Winxp netlogon script > From: "Truman" <tlackey () dmsidaho ! com> > Date: 2003-05-16 20:31:28 > [Download message RAW] > > I am adding more information on my status: > The question that I need to find is why Win98 client have no problem > running the logon script and WinXp clients do not even appear to try. > > When I log onto the domain from a WinXp pro client the home share is > getting mapped but the logon script is not getting executed. I have > checked the log files and I am in the domain. > > Initially I had 2 WinXp client using roaming profiles just to test but > I decided against using this feature. This may somehow caused WinXp > clients to not run the logon script but I am not sure. I have the > same symptoms on 4 WinXp clients, and 1 win2000 client. > > Truman > > > Khanh Tran > Network Operations > Sarah Lawrence College > >-- John H Terpstra Email: jht@samba.org