LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 03-19-2003, 01:12 AM   #1
cyberdiamond
LQ Newbie
 
Registered: Jul 2002
Location: Australia
Distribution: Red Hat 5.2-7.3 & Bootable Slackware 8.1 CD
Posts: 27

Rep: Reputation: 15
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!
 
Old 03-20-2003, 05:24 PM   #2
cyberdiamond
LQ Newbie
 
Registered: Jul 2002
Location: Australia
Distribution: Red Hat 5.2-7.3 & Bootable Slackware 8.1 CD
Posts: 27

Original Poster
Rep: Reputation: 15
Anyone ???
 
Old 03-20-2003, 05:42 PM   #3
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
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?
 
Old 03-20-2003, 05:50 PM   #4
cyberdiamond
LQ Newbie
 
Registered: Jul 2002
Location: Australia
Distribution: Red Hat 5.2-7.3 & Bootable Slackware 8.1 CD
Posts: 27

Original Poster
Rep: Reputation: 15
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
 
Old 03-20-2003, 05:59 PM   #5
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
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.
 
Old 03-20-2003, 07:20 PM   #6
cyberdiamond
LQ Newbie
 
Registered: Jul 2002
Location: Australia
Distribution: Red Hat 5.2-7.3 & Bootable Slackware 8.1 CD
Posts: 27

Original Poster
Rep: Reputation: 15
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
 
Old 03-20-2003, 07:24 PM   #7
cyberdiamond
LQ Newbie
 
Registered: Jul 2002
Location: Australia
Distribution: Red Hat 5.2-7.3 & Bootable Slackware 8.1 CD
Posts: 27

Original Poster
Rep: Reputation: 15
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!

Last edited by cyberdiamond; 03-20-2003 at 07:26 PM.
 
Old 03-26-2003, 04:01 AM   #8
cyberdiamond
LQ Newbie
 
Registered: Jul 2002
Location: Australia
Distribution: Red Hat 5.2-7.3 & Bootable Slackware 8.1 CD
Posts: 27

Original Poster
Rep: Reputation: 15
After trying rootexec etc and getting nowhere it was %G not %g that it needed!
 
Old 03-26-2003, 07:27 AM   #9
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
So it was a problem with your batch files. hmmm...when did DOS become case sensitive?
 
Old 03-29-2003, 06:08 PM   #10
cyberdiamond
LQ Newbie
 
Registered: Jul 2002
Location: Australia
Distribution: Red Hat 5.2-7.3 & Bootable Slackware 8.1 CD
Posts: 27

Original Poster
Rep: Reputation: 15
How was it a problem with my batch files ???

I changed the case in the smb.conf and all is now well
 
Old 03-29-2003, 06:33 PM   #11
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Oh I thought the %g was in your batch file. Sorry.
 
Old 09-13-2005, 10:01 AM   #12
fieldyweb
Member
 
Registered: Jun 2005
Location: Wycombe, England
Distribution: Mepis 3.4.3 , Ubuntu & Damm Small Linux
Posts: 119

Rep: Reputation: 15
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)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
domain logon problem uzairkhan Linux - Newbie 3 04-23-2005 08:48 PM
30 attempts needed for domain logon! bodyhammer Linux - Networking 6 04-11-2005 06:33 AM
How to logon to win domain jayprakash Linux - Networking 0 09-05-2004 06:02 PM
domain logon question Menestrel Linux - Networking 1 07-22-2004 12:05 PM
Domain Logon SeanNation Linux - Newbie 5 01-03-2004 01:06 PM


All times are GMT -5. The time now is 08:10 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration