[Samba] net drive mapping not working in login script

Craig White craigwhite at azapple.com
Thu Apr 6 18:09:13 GMT 2006


On Thu, 2006-04-06 at 17:19 +0100, Chris Boyd wrote:
> I've set the path for each user in pdbedit and created a login script with drive mapping etc etc
> The network drives aren't being mapped when I login each user:
> smb.conf 
> [global]
>         printcap name = cups
>         cups options = raw
>         map to guest = Bad User
> #       include = /etc/samba/dhcp.conf
>         logon path = \\%L\profiles\.msprofile
>         logon home = \\%L\%U\.9xprofile
>         logon drive = P:
> 
> 
> [protel]
>         comment = Protel Data Folder
>         path = /protel
> #       drive = K:
>         read only = no
> [netlogon]
>         comment = Network Logon Service
>         path = /var/lib/samba/netlogon
>         write list = root
>         admin users = root
>         guest ok = Yes
>         browseable = No
> 
> pdbedit -L -v
> 
> Unix username:        aillin
> NT username:
> Account Flags:        [U          ]
> User SID:             S-1-5-21-1439502771-4027299746-1242570080-3004
> Primary Group SID:    S-1-5-21-1439502771-4027299746-1242570080-513
> Full Name:            aillin
> Home Directory:       \\ucd01\aillin\.9xprofile
> HomeDir Drive:        P:
> Logon Script:         \\ucd01\netlogon\aillin.bat
> Profile Path:         \\ucd01\profiles\.msprofile
> Domain:               UCD
> Account desc:
> Workstations:
> 
> vim /vavr/lib/samba/netlogon/aillin.bat
> 
> echo Setting Current Time...
> net time UCD01 /set /yes
> 
> echo Mapping Network Drives to StressFree File Server UCD01...
> net use k: UCD01protel
> net use s: UCD01share
> #net use t: EXAMPLESERVERtemp
> 
----
do the scripts work if you run them manually?

Craig



More information about the samba mailing list