Quote:
Originally posted by paulr1984
yes /home/paulr1984 exists. And I can ping the windows box from the linux box as well as the other way around. There are no messages in the /var/log/messages or even dmesg which concerns samba.
I still can't access linux shares from windows. =(
|
Below is a listing of smb.conf, logon.conf and userStart.bat that I used when I had a debian box as a seperate firewall when using modem dialup
it may give you an idea about how it all works. Note this was setup for me by a couple ofmore knowledgable guys and it was a while back.
You'll have to massage this a bit a samba has moved on from when it was first written
smb.conf:
; The global setting for a RedHat default install
; Make sure you tes the config with testparm before restarting
; Make sure and restart the server after making changes to this file, ex:
; /etc/init.d/samba stop
; /etc/init.d/samba start
[global]
workgroup = House
volume = Boxen
log file = /var/log/samba/log.%m
max log size = 500
; lock directory = /var/lock/samba
share modes = yes
dont descend = /proc,/dev
server string = %h's Samba server: V%v
; comment = %h server (Samba %v)
syslog only = no
syslog = 1
; bind interfaces only = yes
; interfaces = 192.168.69.0/24 10.1.100.0/24
; File name mangling options
short preserve case = yes
preserve case = yes
; name service setup
name resolve order = lmhosts host wins bcast
dns proxy = yes
; network configuration
include=/etc/samba/logon.conf
; user - password configuration
include=/etc/samba/passwd.conf
; printer configuration
include=/etc/samba/printing.conf
[netlogon]
path = /etc/samba/netlogon
; writeable = no
read only = yes
guest ok = no
[homes]
comment = Home Directories
public = no
browseable = no
read only = no
; writeable = yes
create mode = 0770
directory mask = 0770
[tmp]
comment = Temporary file space
path = /var/windows/tmp
read only = no
public = yes
; A publicly accessible directory, but read only, except for people in
; the staff group
[public]
comment = Public Stuff
path = /home/ftp
public = yes
; writable = no
read only = yes
printable = no
write list = @staff
[personal-ftp]
comment = Users Public Stuff
path = /home/ftp/users/%u
force user = %u
public = no
browseable = yes
read only = yes
write list = %u
printable = no
create mode = 0765
[data]
path = /var/windows/data
public = yes
only guest = yes
; writable = yes
read only = no
printable = no
; create mask = 0765
[programs]
path = /var/windows/programs
public = yes
only guest = yes
; writable = yes
read only = no
printable = no
; create mask = 0765
logon.conf:
os level = 50
domain master = yes
local master = yes
domain logons = yes
preferred master = yes
wins support = yes
; hosts allow = 192.168.
logon drive = p:
logon home = \\%N\%u
; logon path = \\%N\%u\winfiles
; logon script = winfiles\winstart.bat
logon script = %g\UserStart.bat
; logon script = UserStart.bat
now the batch file was stored 2 levels down in 2 seperate directories thus
netlogon/guest
netlogon/users
Note BOX is the name of samba server
UserStart.bat:
NET TIME \\BOX /SET /YES
NET USE N: \\BOX\DATA
NET USE S: \\BOX\TMP
NET USE Y: \\BOX\PROGRAMS
NET USE P: \\BOX\HOMES
call p:\winfiles\winstart.bat