Koozali.org: home of the SME Server

Samba problems

noppes

Samba problems
« on: November 17, 2004, 06:13:43 PM »
Hi,

About ten days ago we installed 6.0.1 on a new server and everything went well.
Yesterday I installed 6.0.1 on the old server in order to use it as a backup server (with the latest software). I added a line in
/home/e-smith/files/samba/netlogon/netlogon.bat so the backup server would be visible:
   net use u: \\oldserver\backups
From that moment on, netlogon.bat didn't map shares to their respective drives during logon. Invoking the script by hand (or the commands issued in a dos box) does the trick, but of course it should happen automatically during logon.
I remember making a mistake (and correcting it) in netlogon.bat, but I never changed any config file.

Does anyone have a clue as to why this is happening and what could be done in order to solve the problem ?

Thanks in advance.

Et

Offline bushinc

  • ***
  • 62
  • +0/-0
    • http://www.bushinc.com
Samba problems
« Reply #1 on: November 21, 2004, 04:58:16 AM »
Login to the network as admin and open the login script from using samba.  ie enter the following in the browser:
\\your_server_name\netlogon

Edit the netlogon.bat file with notepad.
Get rid of any weird end of line chars if they show up.

Save and the login script should run again.
...

noppes

Samba problems
« Reply #2 on: December 16, 2004, 10:03:15 AM »
Quote from: "bushinc"
Login to the network as admin and open the login script from using samba.  ie enter the following in the browser:
\\your_server_name\netlogon

Edit the netlogon.bat file with notepad.
Get rid of any weird end of line chars if they show up.

Save and the login script should run again.


Thanks, when configuring the old server with swat, I read a note explaining the necessity of the batchfile being LF/CR terminated. So notepad was indeed my friend :o).
I never comtemplated logging in as admin however, good tip.
Sorry for the late response, the problem was solved the next day, so after a few days I didn't check this site anymore.

Et