[Samba] Logon script problem
jason at vipersystems.biz
Wed Jun 30 23:17:56 GMT 2004
Thanks Tim and anyone else who offered a solution.
The problem was the 'net use * /d /y' line at the very beginning of the script.
Removing it solved the problem.
Tim Tait said:
> Jason Lieurance wrote:
>>John H Terpstra said:
>>>When a user logs onto a domain member machine a drive connection is
>>> automatically set up to the NETLOGON share.
>>>The drive letter used is the last letter available (usually Z:). This connection
>>> is mostly dropped on completion of logon.
>>>Files can be executed off any drive mapping that is made. What makes you believe
>>I understand that, but I don't know why it says:
>>Z:\>NET USE H: /HOME
>>The current directory is invalid.
>>to every 'net use' line.
>>But with the novell client installed, it works fine.
> The command shell won't execute anything if the current working
> directory/drive does not exist. So Z: was mapped during logon as Windows likes to
> do. The netlogon then starts running. But for some reason it seems like Z: is
> being disconnected before it's done... on my system Z: is the persistent home
> dir, and stays mapped until you logout. Anyhow, a quick cheesy fix would be to
> add a statement in the logon script to make C: your working drive (ie "C:").
More information about the samba