Logon script works for W98 NOT 2K/XP but all machines log onto the domain properly!
I have set up a domains and it works well except the logon script will run on all win98 machines but not 2K/XP?
Running the samba that came with RH 7.3 Yes the users have been set up as local users & smb users and the users/machines log onto the domain without any problems! The logon script is in /etc/samba/netlogon/groupname.bat (replace groupname with the users real primary group name) The group has read and execute access permissions on the file groupname.bat and its directory Here is my smb.conf with the names and ip addresses changed ;) #======================= Global Settings ===================================== [global] netbios name = NAME server string = SERVER workgroup = WORKGROUP hosts allow = 10.XX.XX. 127.0.0. ; guest account = pcguest #this is a simple script to create a machine trust account on the PDC add user script = /usr/sbin/useradd -d /dev/null -g machines -c machines -s /bin/false -M %u log file = /var/log/samba/machine_logs/log.%m log file = /var/log/samba/user_logs/log.%U max log size = 50 security = user encrypt passwords = yes smb passwd file = /etc/samba/smbpasswd pam password change = no obey pam restrictions = yes socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 interfaces = 10.XX.XX.XX/24 remote announce = 10.XX.XX.255 local master = yes browseable = yes os level = 99 domain master = yes preferred master = yes domain admin group = @root @admin # Below is not working (may be out of date ??? will look at later!) # domain admin users = root steve domain logons = yes logon home = \\%L\%U logon drive = H: logon script = %g.bat logon path = %g wins support = yes wins proxy = no dns proxy = no #============================ Share Definitions ============================== [homes] comment = Home Directories hide unreadable = yes browseable = no writable = yes valid users = %S create mode = 0664 directory mode = 0750 # If you want users samba doesn't recognize to be mapped to a guest user ; map to guest = bad user [profiles] comment = Profiles path = /etc/samba/profiles/ hide unreadable = Yes browseable = no readonly = yes writelist = @admin, @root ;createmask = 0770 [netlogon] comment = Network Logon Service path = /etc/samba/netlogon writable = no share modes = no writelist = @admin, @root #end of smb.conf I have searched and not found anything useful. Hope I can sort this out! |
Anyone ???
|
Quote:
Would you agree that the problem is with the batch file? |
The batch file works good if I copy it to a network share and manualy run it (double click) on the 2K/XP machines.
So I doubt its that (and the 9x machines run it remotely fine on logon). Thanks for trying :) |
Well what I don't understand is why the 98 machine will run the batch script remotely but the XP and 2K machines do not. I don't see how this could be a Samba issue. Convince me.
|
Quote:
Something to do with the %g not being interpreted properly ??? Does 2K/XP require a rootexec line to do this sort of thing? (I don't see why it should) Something I will try when I am in front of the server next. I don't know how I can convince U its is/isn't a samba issue as I don't know why its not working? Cheers, Steve |
Quote:
The users manually log onto the win clients. It seems the 2K/XP clients don't even run the script at all! |
After trying rootexec etc and getting nowhere it was %G not %g that it needed!
|
So it was a problem with your batch files. hmmm...when did DOS become case sensitive?
|
How was it a problem with my batch files ???
I changed the case in the smb.conf and all is now well |
Oh I thought the %g was in your batch file. Sorry.
|
I think this bloke worked for AOL in a previous life...
No its someone elses problem... so you can't load up the AOL CD custoer, "convince me its an AOL problem.. go on i dare you.." They guy had a legitiomate issue, and this "its a Windows problem, is what KILLING linux" Getover it.. HELP, or get off the pot.. (Sorry been dealing with a local support engineer today who had the same Its not our problem attitude, and it was) |
All times are GMT -5. The time now is 08:38 AM. |