Samba mapping drives from login script
I'm using Samba to replace an old Novell 3.11 server.
Everything works fine, except for mapping network drives from the login script.
net use p: \\infotronic-2\p /y
works when called from the login script,
net use z: \\infotronic_2\z /y
doesnt. That is, the script announces that the command completed correctly, but Z: is not connected to the network share afterwards.
My suspicion is that this happens because the netlogon share is mounted temporarily on Z: while executing the script, and is dismounted afterwards, effectively unmounting the newly-mounted Z:.
My smb.conf looks like this:
[global]
netbios name = INFOTRONIC-2
interfaces = pcn0 lo0
bind interfaces only = Yes
encrypt passwords = Yes
unix password sync = Yes
logon script = Logon.bat
logon drive = J:
domain logons = Yes
os level = 64
preferred master = Yes
domain master = Yes
wins support = Yes
create mask = 0770
directory mask = 0770
[home]
path = /export/Infotronic/USER/%U
browseable = yes
writeable = yes
[Z]
path = /export/Infotronic
read only = No
[P]
path = /export/Infotronic/PROJ
read only = No
[Faxes]
comment = Ontvangen faxen
path = /var/spool/hylafax/recvq
read only = No
[U]
path = /export/Infotronic/USER
read only = No
[netlogon]
comment = Network Logon Service
path = /home/netlogon
guest ok = Yes
share modes = No
Who has any idea?
Last edited by lion; 10-08-2003 at 07:56 AM.
|