Results 1 to 1 of 1
Hello, all. I am attempting to configure Samba 3.5 under CentOS 5.5 so that certain shares will be mapped to drive letters automatically when a user logs in. As far ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 12-08-2011 #1
- Join Date
- Feb 2008
Samba refuses to run batch file on login
I am attempting to configure Samba 3.5 under CentOS 5.5 so that certain shares will be mapped to drive letters automatically when a user logs in. As far as I can tell, I have everything in smb.conf configured correctly, and the batch file works fine when I execute it locally on the Windows machine after logging in. Here is my smb.conf file:
[global] workgroup = SAMBA interfaces = 127.0.0.1 eth0 interfaces = 192.168.1.253 eth0 bind interfaces only = true printing = cups printcap name = cups hosts allow = 192.168.1. 127. load printers = yes domain master = yes domain logons = yes preferred master = yes logon script = logon.bat security = user [netlogon] comment = Network Login Service path = /home/netlogon guest ok = yes writeable = no share modes = no valid users = %u read only = no [public] path = /home/public public = yes browseable = yes only guest = yes writeable = yes printable = no [private] path = /home/private browseable = yes public = no only guest = no writeable = yes printable = no [shared] path = /home/shared browseable = yes public = yes only guest = yes writeable = yes printable = no
net time \\turnbowsrv /set /yes net use h: \\turnbowsrv\%u net use i: \\turnbowsrv\shared net use j: \\turnbowsrv\public net use k: \\turnbowsrv\private