LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 05-27-2005, 12:08 AM   #1
ERB
LQ Newbie
 
Registered: May 2005
Location: Swaziland
Posts: 9

Rep: Reputation: 0
logon.bat and Windows XP


For my sins I have to run Windows for the software I require. I am running Red hat as a server with logon.bat to map drives. This works fine with Windows 98, but not with windows XP. I think it's a windows problem - can anyone help?
 
Old 05-27-2005, 12:22 AM   #2
overlord73
Member
 
Registered: Apr 2004
Location: ..where no life dwells..
Posts: 541

Rep: Reputation: 30
think I donīt understand....can you give more infos?!
logon.bat with RH?....whereis this file?
 
Old 05-27-2005, 06:17 AM   #3
ERB
LQ Newbie
 
Registered: May 2005
Location: Swaziland
Posts: 9

Original Poster
Rep: Reputation: 0
Our server was set up by a private company,

On the Linux folder on the Linux Samba Server is a folder called netlogon. In here is a batch file called logon.bat.

This file executes automatically when someone logs onto the network and allows for the mapping of certain network drive to different groups.

This works fine with Windows 98 SE, but not on Windows XP.

They (the co. that installed the server) cannot/will not help so here I am :-)

The contents of the batch file can be found below:

net time \\LINUX /set /yes
net use h: \\LINUX\homes
net use M: \\linux\marking
net use T: \\LINUX\teachers
net use X: \\LINUX\assignments
 
Old 05-27-2005, 08:30 AM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
OK so the bat file is a DOS (now Windows) equivalent of a shell script. Basically you're just executing the commands in the bat file.

First question this leads to is: Are these commands still valid for Windows XP. Doing google I found the following pages:
http://www.microsoft.com/resources/d...s/net_use.mspx
http://www.microsoft.com/resources/d.../net_time.mspx

They give usage of "net time" and "net use" for Windows XP Professional so the answer to above would be yes. You may want to review the links to make sure there aren't other parameters required for XP that weren't for 98.

Second thing would be to insure you don't already have H:, M:, T: and X: drives mounted on the XP machine. Right click on the My Computer icon then select Map Network Drive. Once you get the box click on the Drive list to see which if any drive letters are already in use. (If in use you'll see the drive letter followed by a \\server\path combination. )

If not in use you can try using this box to manually select the drive and mount it. Also since it gives an option for setting it to logon you wouldn't need the bat file if successful with the manual mount.

If the manual mount isn't successful your issue is likly with the smb.conf on Linux. Unfortunately I've not played a lot with that. I do see there is a remote announce line in it to make it available so if the XP PC isn't in the same Windows Workgroup as the 98 PC you may just need to add something there.

Its also possible your network is blocking it if the XP PC is in a different subnet than the 98 PC.
 
Old 05-27-2005, 08:39 AM   #5
ezra143
Member
 
Registered: Aug 2003
Location: NY
Distribution: RH9, RH8, Slack, Vector
Posts: 497

Rep: Reputation: 32
Are you sure that the windows xp boxen are executing the files?
 
Old 05-27-2005, 10:24 AM   #6
fuzzyash
Member
 
Registered: Aug 2003
Location: Melbourne Australia
Distribution: Fedora Core 4
Posts: 184

Rep: Reputation: 30
The fact that Win 98 can successfully map the Samba shares based on your logon.bat file & XP can not hints to me that the problem is not with the way Samba is setup on your Linux server but with the way the XP boxes are accessing the network. The XP network does work slightly differently from Win 98 but basically XP still uses all the same protocols & procedures that Win 95 used all those years ago.

Post your results of the following:
=============================================
From one of the XP boxes, can you navigate to the Linux server via Network Neighborhood?

From one of the Win 98 boxes, can you navigate to one of the XP boxes via Network Neighborhood?

From one of the XP boxes, can you navigate to one of the Win 98 boxes via Network Neighborhood?

Are you running the "Home" version or the "Professional" version of XP?

Have you installed any of the XP "Service Packs"? Especially "Service Pack 2"?

From one of the XP boxes, open Windows Explorer (the Windows file browser) & enter one of the Linux paths into the "location bar" (the place at the top of the window just under the icons that displays where in the filesystem you are currently viewing) For example type:
Code:
\\LINUX\homes
into the location bar. This should allow you to view this Samba share. (if you don't know what a "Samba share" is, go to http://us3.samba.org/ or see the smb.conf man file: man smb.conf)
=============================================

XP also has a crappy, built-in firewall system, especially if you have Service Pack 2 installed. This might be blocking connections from the Linux server.

Also, post your /etc/samba/smb.conf file from your Linux server so I can take a look at how it's options have been setup & how the shares are setup. One thing that XP does differently from Win 98 is that it uses encrypted passwords by default where as Win 98 uses plain text passwords, this is something that can be overridden in /etc/samba/smb.conf.

There are many, many reasons that this might be happening... After you try the above, answer the questions & post your results, we might be able to narrow them down.
 
Old 05-31-2005, 01:25 AM   #7
ERB
LQ Newbie
 
Registered: May 2005
Location: Swaziland
Posts: 9

Original Poster
Rep: Reputation: 0
The problem is sorted out - it seems XP was not set up to log onto the domain, it was set up as a workgroup logon.

Found some usefull information at http://www.ccs.uky.edu/docs/samba.htm that helped set up XP to the Samba domain.

Thank you for all your suggestions :-)
 
  


Reply



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
logon.bat for Windows XP ERB Linux - Newbie 3 09-12-2005 08:14 AM
windows xp style logon Maego Linux - Newbie 1 11-21-2004 09:07 AM
Logon to a Windows network titanandrews Linux - Networking 2 10-16-2004 09:51 AM
XP not loading logon.bat in Samba's Netlogon kenji1903 Linux - Networking 9 09-01-2004 09:41 PM
windows xp logon failed. alris Linux - General 1 08-04-2003 07:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration