[Samba] Login Script - Please clarify
Marian Mlcoch, Ing
mm at tsmp.sk
Wed May 7 12:52:09 GMT 2003
your problem is that you use %U in script invalid
wrong command net use s: \\public\users\%U
ok is net use s: \\public\%U
but net use x: \\computername\sharename is only accpeted.
Yuo write \\computername\sharename\dirname but this is bad syntax for net
If in script you need map home directory of user you can write net use s:
\\public\homes in netlogon.bat
And you must create netlogon.bat on windows editor and then copy to netlogon
share but need CR/LF seq. on end of lines.
----- Original Message -----
From: "Devanesan" <sde at baba9.com>
To: <samba at lists.samba.org>
Sent: Wednesday, May 07, 2003 1:16 PM
Subject: [Samba] Login Script - Please clarify
> I have placed this line "net use s: \\public\users\%U" in the file
> and "logon script = netlogon.bat" in the file "smb.conf".
> so that I can avoid creating separate ".bat" file for individual users
> while creating
> private shares. This is not working for me. Can you please tell me
> where I am going wrong?.
> At the same time if I create separate .bat file for each users and provide
> the line
> "logon script = %U.bat" in the file "smb.conf", then it is working fine.
> But this involves
> continuos maintenance as I have to keep creating .bat files as new users
> Warm Regards
> To unsubscribe from this list go to the following URL and read the
> instructions: http://lists.samba.org/mailman/listinfo/samba
More information about the samba