Hello all. I'm having a bit of trouble with login scripts. Whenever a workstation logs in, the first line in the batch file gets run, but then a "Batch file missing" error is displayed. I've checked the permissions on the file and changed them to 777 and it still doesn't work. I'm using samba 2.2.2. Any ideas? Here's my config snippit: logon path = \\Fuzzbawl\netlogon logon drive = y: logon script = %U.bat And here's fuzzy.bat (my script) net use * /DELETE /YES net use z: \\Fuzzbawl\downloads net time \\Fuzzbawl /SET /YES Thanks. -------------------------- Adam Kennedy (Fuzzy Logic) Amatuer Radio Call: KB9ZSY fuzzy@fuzzydice.net http://www.fuzzydice.net -------------------------- I'd crawl over an acre of 'Visual This++' and 'Integrated Development That' to get to gcc, Emacs, and gdb. Thank you. -- Vance Petree, Virginia Power
Were the scripts created in Linux? If so, they probably have unix text
file format, which will not work as a windows batch file.
If this is the case, you can use todos to convert individual files to dos
format....
ex: cat something.bat | todos > somethingnew.bat
Unfortunately, I don't really know how to convert a large number of files
without having to rename them all and do them individually, though I'm
sure its doable (I've never had need to do so.)
____________________________________________
Jan 5 9:27am
_
ASCII ribbon campaign ( )
- against HTML email X
& vcards / \
On Sat, 5 Jan 2002, Adam Kennedy (Fuzzy Logic) wrote:
Hello all. I'm having a bit of trouble with login scripts. Whenever a
workstation logs in, the first line in the batch file gets run, but then
a "Batch file missing" error is displayed. I've checked the
permissions on
the file and changed them to 777 and it still doesn't work. I'm using
samba 2.2.2. Any ideas?
Here's my config snippit:
logon path = \\Fuzzbawl\netlogon
logon drive = y:
logon script = %U.bat
And here's fuzzy.bat (my script)
net use * /DELETE /YES
net use z: \\Fuzzbawl\downloads
net time \\Fuzzbawl /SET /YES
Thanks.
--------------------------
Adam Kennedy (Fuzzy Logic)
Amatuer Radio Call: KB9ZSY
fuzzy@fuzzydice.net
http://www.fuzzydice.net
--------------------------
I'd crawl over an acre of 'Visual This++' and 'Integrated
Development
That' to get to gcc, Emacs, and gdb. Thank you.
-- Vance Petree, Virginia Power
--
To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samba.org/mailman/listinfo/samba
As soon as the fist line of the fuzzy.bat file is executed, the network connection is cut, so the batch file is no longer available. Thomas Cameron, RHCE, CNE, MCSE, MCT Cameron Technical Services, Inc. Adam Kennedy (Fuzzy Logic) wrote:> Hello all. I'm having a bit of trouble with login scripts. Whenever a > workstation logs in, the first line in the batch file gets run, but then > a "Batch file missing" error is displayed. I've checked the permissions on > the file and changed them to 777 and it still doesn't work. I'm using > samba 2.2.2. Any ideas? > Here's my config snippit: > > logon path = \\Fuzzbawl\netlogon > logon drive = y: > logon script = %U.bat > > And here's fuzzy.bat (my script) > net use * /DELETE /YES > net use z: \\Fuzzbawl\downloads > net time \\Fuzzbawl /SET /YES > > > Thanks. > -------------------------- > Adam Kennedy (Fuzzy Logic) > Amatuer Radio Call: KB9ZSY > fuzzy@fuzzydice.net > http://www.fuzzydice.net > -------------------------- > > I'd crawl over an acre of 'Visual This++' and 'Integrated Development > That' to get to gcc, Emacs, and gdb. Thank you. > -- Vance Petree, Virginia Power > > >
Something to consider Login scripts on Win9x boxes run from Z: automatically ie on the Server I administer the netlogon share is automatically mapped (by Win9x) as Z: until told otherwise later. The first line of your login file deletes all drive mappings including Z: - thus Windows has no path to Z:login batch file I am pretty sure that is why the path to the login script will be disappearing. It also explains why you can run the login script from a share name - no drive letter to loose in the middle of the execution. As a matter of course I do not delete all drive mappings on workstations logging in (never had to so far) and specifically leave Z: alone for this reason. HTH Richard Smart Amateur Radio Call: ZL4FZ rsmart@netaccess.co.nz At 00:34 7/01/02 -0500, you wrote:>>As soon as the fist line of the fuzzy.bat file is executed, the network >>connection is cut, so the batch file is no longer available. >> >>Thomas Cameron, RHCE, CNE, MCSE, MCT >>Cameron Technical Services, Inc. > >I know that is what happens. That's the reason I've emailed the list >asking for help. Do you have a solution or any idea as to what might be >going on or a way to enable a sort of debug mode under windows so I can >see what's going on during the login process? > >-------------------------- >Adam Kennedy (Fuzzy Logic) >Amatuer Radio Call: KB9ZSY >fuzzy@fuzzydice.net >http://www.fuzzydice.net >-------------------------- > >Let's call it an accidental feature. > -- Larry Wall > > >-- >To unsubscribe from this list go to the following URL and read the >instructions: http://lists.samba.org/mailman/listinfo/samba > >
Hi, i've updated my samba to 2.2.3a. Since this update, the login script does not work. Here the log: [2002/02/27 16:00:11, 0] rpc_server/srv_netlog.c:api_net_sam_logon(206) api_net_sam_logon: Failed to marshall NET_R_SAM_LOGON. [2002/02/27 16:00:11, 0] rpc_server/srv_pipe.c:api_rpcTNP(1200) api_rpcTNP: api_netlog_rpc: NET_SAMLOGON failed. This happens during a domain login from a Windows2000 computer. Before the update it works without any problems. I use the 2.2.3a rpm with RedHat 7.2. Any idea? Bye Marco
I'm trying to have a login script run on my system. But unfortunatally I don't know how to do this. I have tried to set it up with the netlogon share and setting the logon script to login.bat but it doesn't execute whenever I login. I'm not sure what to do. I know I am being pretty vauge here but I don't know what information is pertinent and what isn't. Thanks, Dan
Hi Daniel, yep been the done that and got lost.... so hears a hand..
you can change the logon script = logon.bat if you do not need individual logon
setups.
# The following two lines disable roaming profiles for windows clients
# to enable put in the logon home and path
logon path logon home
# Assign users there logon home drive and unique script
# %U session user name (the user name that the client wanted, not
# necessarily the same as the one they got).
# %u user name of the current service, if any. e.g the user logon name
# %H the home directory of the user given by %u.
logon drive = H:
logon home = "\\Nas_server\User\%u"
logon script = "%u.bat"
Here a sample logon batch file called "logon.bat"
net use t: /delete /y
net use s: /delete /y
net use t: \\Nas_server\download
net use s: \\Nas_server\source
net time \\linuxserver /set /y
Hope it helps
From: Daniel Berg <darobe@mchsi.com>
To: samba@lists.samba.org
Date: 29/07/2003 06:40 AM
Subject: [Samba] Login Script Problem
I'm trying to have a login script run on my system. But unfortunately I
don't know how to do this. I have tried to set it up with the netlogon
share and setting the logon script to login.bat but it doesn't execute
whenever I login.
I'm not sure what to do.
I know I am being pretty vague here but I don't know what information is
pertinent and what isn't.
Thanks,
Dan
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Oooo
? ? ? ?(O O) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?( ? ) Oooo
--oooO--(_)--Oooo------------------------------------\ (-( ? )--
? ? ? ? ? ? ? ? ? ? ? ?COMPUTER FACILITIES ? ? ? ? ? ?\_) ) /
---------------------------------------------------------(_/----
Postal Address ?Delivery Address ? ? Contacts
----------------------------------------------------------------
P.O.Box 21558 ?61 Bukoto Street ?support@computer-facilities.com
Kampala ? ? ? ?Kamwokya ?
Uganda ? ? ? ? Kampala ? ? ? ? ? Tel 256-(0)41-533784
East Africa ? ?Uganda ? ? ? ? ? ?Fax 256-(0)41-540380
? ? ? ? ? ? ? ?East Africa ? ? ? e-Fax 1-206-350-3375 (USA)
----------------------------------------------------------------