harv@ifox.com
2003-Oct-10 00:23 UTC
[Samba] Make share appear as drive under My Computer automatically
I am using the latest version of Samba on Debian/GNU Linux. I am running Samba on an old Gateway machine that has very little hard drive space or RAM. (I'm merely trying to configure and get familiar with Samba before putting it on our mail server.) I have successfully gotten Samba to work as a domain controller using roaming profiles. I would like to make a drive in My Computer appear as "T:" automatically whenever a user logs into the domain. I have read the documentation on the command, and apparently, one needs to run a logon script that runs a "net" command to connect a network drive letter. I use the following in a logon script: net user T: \\WING\test I can see the logon script run, but it always fails. The drive sometimes appears in My Computer, but it has a red X on the icon, signifying that it is not available. I wonder if anyone has had success with this. I am a novice with Samba, and I would appreciate any help. If I have been unclear in anything, please let me know, and I will restate and clarify exactly what I mean. Following is my smb.conf file. [global] ;basic server settings workgroup = SAMBA netbios name = WING server string = Samba PDC running %v socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192 ;PDC and master browser settings os level = 64 preferred master = yes local master = yes domain master = yes ;security and logging settings security = user encrypt passwords = yes log file = /var/log/samba/log.%m log level = 2 max log size = 50 hosts allow = 127.0.0.1 192.168.1.0/255.255.255.0 ;user profiles and home directory logon home = \\%L\%U\ logon drive = T: logon path = \\%L\profiles\%U logon script = netlogon.bat # ==== shares === [homes] comment = Home Directories browseable = no writeable = yes [profiles] path = /home/samba/profiles writeable = yes browseable = no create mask = 0600 directory mask = 0700 [netlogon] comment = Network Logon Service path = /home/netlogon read only = yes browseable = no write list = tom Thank you in advance for any help that anyone may be able to offer.
WinXperts
2003-Oct-10 03:03 UTC
[Samba] Re: Make share appear as drive under My Computer automatically
The logon path and logon drive takes care of mapping the home directory: logon path = \\%N\profiles\%U logon drive = t: the mapping command is net use u: \\wing\test Hope this helps! =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-Santos Soler MCP, Network+, A+ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=