LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Logon script works for W98 NOT 2K/XP but all machines log onto the domain properly! (https://www.linuxquestions.org/questions/linux-networking-3/logon-script-works-for-w98-not-2k-xp-but-all-machines-log-onto-the-domain-properly-50584/)

cyberdiamond 03-19-2003 12:12 AM

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!

cyberdiamond 03-20-2003 04:24 PM

Anyone ???

Crashed_Again 03-20-2003 04:42 PM

Quote:

I have set up a domains and it works well except the logon script will run on all win98 machines but not 2K/XP?
If I'm reading this right, your using a batch file to automate logins on your windows clients. It sounds like the problem is in the batch file. If so this is not the place for batch file help.

Would you agree that the problem is with the batch file?

cyberdiamond 03-20-2003 04:50 PM

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 :)

Crashed_Again 03-20-2003 04:59 PM

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.

cyberdiamond 03-20-2003 06:20 PM

Quote:

Originally posted by Crashed_Again
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.
Me niether, thats why I'm asking ;)

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

cyberdiamond 03-20-2003 06:24 PM

Quote:

If I'm reading this right, your using a batch file to automate logins on your windows clients.
Just to clarify I am only getting the logon script to map network shares to drives, sync time and other simple things at the moment.
The users manually log onto the win clients.

It seems the 2K/XP clients don't even run the script at all!

cyberdiamond 03-26-2003 03:01 AM

After trying rootexec etc and getting nowhere it was %G not %g that it needed!

Crashed_Again 03-26-2003 06:27 AM

So it was a problem with your batch files. hmmm...when did DOS become case sensitive?

cyberdiamond 03-29-2003 05:08 PM

How was it a problem with my batch files ???

I changed the case in the smb.conf and all is now well

Crashed_Again 03-29-2003 05:33 PM

Oh I thought the %g was in your batch file. Sorry.

fieldyweb 09-13-2005 09:01 AM

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.