[Samba] net drive mapping not working in login script

Chris Boyd Chris.Boyd at usit.ie
Thu Apr 6 16:19:30 GMT 2006


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



Chris Boyd
Systems Engineer
USIT 
19-21 Aston Quay
Dublin 2
Ireland

Tel: +353 1 6021670
Fax: +353 1 6771602
www.usit.ie

-----------------------------------------------------------------
This email message is intended only for the addressee(s) 
and contains information that may be confidential and/or 
copyrighted.  If you are not the intended recipient please 
notify the sender by reply email and immediately delete 
this email. Use, disclosure or reproduction of this email 
by anyone other than the intended recipient(s) is strictly 
prohibited. USIT has scanned this email for viruses and 
dangerous content and believes it to be clean. However, 
virus scanning is ultimately the responsibility of the recipient.
-----------------------------------------------------------------



More information about the samba mailing list