Networking :: Using Samba
[global]
# this sets the work group and should match you windows work group
workgroup = <your work group>
# this string show up in your network neiborhood
server string = <discriptive string>
# these are my private ip networks behind my router firewall and localhost
hosts allow = 192.168.x.0/24 172.x.0.0/16 127.0.0.1
# not really needed but could come in handy. generates a log file
# for debugging
log file = /var/log/log.%m
# sets max limit on file
max log size = 50
# this i really struggled with. by setting the security to share you open
#your share up to
# anyone on your network without a password. if you set it to user then
# a login is required. to use the login you
# must have the next two lines or at least the encrypt password line.
# you also need to use smbpasswd
# to create a smb password. I eventually got this to work for file sharing
# but could not get it working for
# sharing my printer and eventually set security to share.
security = share
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
# this i set because i read it somewhere that it was needed for linux.
# i don't have clue what it does.
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
# not sure if this is needed, i do not have a dns proxy but since it
# works well i left it.
dns proxy = no
# so i have one linux share on this network call kinux-share (don't ask about
# the name). the path is to a directory
# i created for sharing with other windows and linux boxes. make sure
# that you set the permissions in the directory
# for whatever you want to allow. if you want to allow files to written
# then make it writable, etc. I would suggest
# you try something simple and go from there. this is not trivial. good luck
[kinux-share]
comment = Kinux-box share
path = /mnt/sda1/public/kinux_share
guest ok = yes
read only = no
Hmm, nice idea.
I tried it and could view the DSL machine in network neighbourhood on Windows, but can't view anything. It keeps asking for a password.
Have changed the [global] settings to:
security = share
workgroupe = (my workgroup)
and I can now view the directory on the DSL machine, but can't write to it.
Have tried adding this to the directory settings:
public = yes
writable = yes
read only = no
but hasn't made any difference.
Any suggestions?
.... sorry these posts overalapped......
Make sure you permissions are set correctly. You need to make sure your directory is writable.
root@box:/etc/samba# ls -lstd /mnt/sda1/public/kinux_share
4 drwxrwxrwx 6 dsl staff 4096 Apr 29 01:08 /mnt/sda1/public/kinux_share
Also I was stuck on the password bussiness for a while. In my case the key was setting the encryption to yes like in the examble I posted earlier. Also you need to set up the user and password with smbpasswd.
Next Page...
original here.