On Wed, Sep 18, 2002 at 09:13:02AM -0500, Shane Tapper wrote: > Im desperate. I have set the appropriate path for a logon script and > assured the .cmd file is located there. It however does not run at all. > The file itself can be executed successfully on a W2k machine. It does not > appear samba is even attempting to run it. Any suggestions? > Troubleshooting tips?
First, the .cmd extension will only work for Windows NT/2000/XP clients. If you have Windows 95/98/Me clients, use a .bat extension, which works for all of them. Next, set up your smb.conf file with the following parameters: [global] # logon.bat is the name of the logon script: logon script = logon.bat [netlogon] # User your own directory for path path = /usr/local/samba/lib/netlogon writable = no browsable = no Finally, you need to make sure that the logon script is located in the directory you are using for [netlogon]. In this case, it would be /usr/local/samba/lib/netlogon/logon.bat. Make sure that the [netlogon] directory exists, that both the directory and logon script are readable, etc. When the Windows 2000 system logs onto the domain, you should see a message on the screen saying that it is executing the logon script. You may see a Command Prompt window appear, and maybe turn into an button on the taskbar. These will disappear when the script finishes. Jay Ts -- This electronic transmission and any files attached to it are strictly confidential and are not intended for the addressee. If you are the intended addressee, you must not disclose, copy or take any action in reliance of this transmission. If you have received this transmission in error, please notify us and delete the same. Thank you.