Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (4) </ 1 2 [3] 4 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Using Samba, Sharing files on a Windows network< Next Oldest | Next Newest >
dtf Offline





Group: Members
Posts: 196
Joined: Nov. 2005
Posted: April 29 2006,22:15 QUOTE

[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
Back to top
Profile PM 
rjmusto Offline





Group: Members
Posts: 10
Joined: April 2006
Posted: April 29 2006,22:32 QUOTE

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?
Back to top
Profile PM 
rjmusto Offline





Group: Members
Posts: 10
Joined: April 2006
Posted: April 29 2006,22:34 QUOTE

.... sorry these posts overalapped......
Back to top
Profile PM 
dtf Offline





Group: Members
Posts: 196
Joined: Nov. 2005
Posted: April 29 2006,22:40 QUOTE

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
Back to top
Profile PM 
dtf Offline





Group: Members
Posts: 196
Joined: Nov. 2005
Posted: April 29 2006,22:43 QUOTE

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.
Back to top
Profile PM 
18 replies since April 22 2006,18:00 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (4) </ 1 2 [3] 4 >/
reply to topic new topic new poll
Quick Reply: Using Samba

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code