You are not logged in.

#1 2009-02-21 11:53:45

nephish99
Member
Registered: 2007-09-01
Posts: 85

how to make a samba share available

Hey all,

I have had the most frustrating few hours trying to figgure out how to simply have one computer share a big folder with the rest of the computers in the house.

OK, i have two computers running archlinux, 1 ubuntu (for the wife) and 1 puppy. Also have a macbook, which can't read nfs, of all things..... anyway. I need a way for one Arch box to share nice will all of them.

Thought samba must be the way to go, but i seem to not be able to set it up right.

Ideal would be that i would have one user name and password that the entire house shares.  I need actually two directories to be shared, one with only read access and one with read and write access.

If anyone could just give me a sample smb.conf to pull this off, i would be most appreciative.

Don't know where i went wrong in the wiki, or the heavily commented 5 page smb.conf.example, or the easy to navigate samba how to website. So i am thinking that whatever it is, must be pretty small. maybe some oversite.

thanks

Offline

#2 2009-02-21 12:37:07

muczyjoe
Member
From: Szeged (Hungary)
Registered: 2007-05-16
Posts: 45
Website

Re: how to make a samba share available

My setup:
[global]
        workgroup = WORKGROUP
        server string = %h server (Samba)
        log file = /var/log/samba/log.%m
        max log size = 1000
        syslog = 0
        security = share
    load printers = no
    printcap name = /etc/printcap
    printing =


[share]
        comment = shared_files
        writable = yes
        path = /mnt/share
        public = yes

So "share" is writable to everyone, and there are no users and password.
The only problem, that with this setup, the shares are indiscoverable...
However typing the ip address of the machine shows the shares. Do anybody know how to solve this discoverability?

Offline

#3 2009-02-21 15:45:10

nephish99
Member
Registered: 2007-09-01
Posts: 85

Re: how to make a samba share available

Hey, thanks.
Think i am still missing something.
I am not worried about the system not being discoverable.

you said that there were no passwords or users, how do you connect to the share?

thanks

Offline

#4 2009-02-21 17:33:30

rasat
Forum Fellow
From: Finland, working in Romania
Registered: 2002-12-27
Posts: 2,293
Website

Re: how to make a samba share available

nephish99 wrote:

OK, i have two computers running archlinux, 1 ubuntu (for the wife) and 1 puppy.
Thought samba must be the way to go, but i seem to not be able to set it up right.

If you are using simple LAN connection and the machines are Linux, samba is not needed. Give different host name to each machine. In archlinux edit two files:

/etc/hosts
Example (archlinux machine 2):
127.0.0.1        localhost.localdomain    localhost
192.168.0.2    arch2.arch2domain  arch2

/etc/rc.conf
HOSTNAME="arch2"

In your archlinux machine 1 run in konqueror (if you use KDE):
fish://arch2
or
fish://192.168.0.2


Markku

Offline

#5 2009-02-21 19:36:46

nephish99
Member
Registered: 2007-09-01
Posts: 85

Re: how to make a samba share available

Hey, rsat, interesting post.

I don't use KDE, and fish is a bash like scripting interface right?  Sorry, got a little confused. Your example is clean, but I don't know what is going on.
Is there something i need to do so fish will work in another browser?

Are you talking about Konqueror the web browser or Konqueror the file manager. Sorry for my ignorance, i am eager to learn, just don't understand.
thanks

Offline

#6 2009-02-22 09:29:51

rasat
Forum Fellow
From: Finland, working in Romania
Registered: 2002-12-27
Posts: 2,293
Website

Re: how to make a samba share available

Konqueror is both a web browser and file manager. About FISH its one of the protocols of KIO (KDE Input/Output):
http://en.wikipedia.org/wiki/KIO


Markku

Offline

#7 2009-03-22 13:13:57

zatricky
Member
From: Stockholm
Registered: 2008-09-03
Posts: 55
Website

Re: how to make a samba share available

nephish99 wrote:

Also have a macbook

Would macbooks (old and new) support FISH?


pacman russian roulette: yes | pacman -Rcs $(pacman -Q | LANG=C sort -R | head -n $((RANDOM % 10)))
(yes, I know its broken)

Offline

#8 2009-05-21 00:32:45

Yaro
Member
Registered: 2009-04-03
Posts: 154

Re: how to make a samba share available

rasat wrote:

Konqueror is both a web browser and file manager. About FISH its one of the protocols of KIO (KDE Input/Output):
http://en.wikipedia.org/wiki/KIO

At the risk of soundign snarky: How about somethign that doesn't require me to install a whole different DE just for accessing shares?

Offline

#9 2009-05-21 20:34:43

awfullyawesome
Member
Registered: 2008-08-23
Posts: 12

Re: how to make a samba share available

muczyjoe wrote:

My setup:
[global]
        workgroup = WORKGROUP
        server string = %h server (Samba)
        log file = /var/log/samba/log.%m
        max log size = 1000
        syslog = 0
        security = share
    load printers = no
    printcap name = /etc/printcap
    printing =


[share]
        comment = shared_files
        writable = yes
        path = /mnt/share
        public = yes

So "share" is writable to everyone, and there are no users and password.
The only problem, that with this setup, the shares are indiscoverable...
However typing the ip address of the machine shows the shares. Do anybody know how to solve this discoverability?

i do have the same problem. the only suboptimal solution would be thru editing everyones hosts file.

Offline

#10 2009-05-24 01:53:29

alun
Member
Registered: 2009-05-24
Posts: 8

Re: how to make a samba share available

If you want the share to be visible in client browsers, set browseable = yes in the share options

[share]
        comment = shared_files
        writable = yes
        path = /mnt/share
        public = yes
        browseable = yes

Offline

Board footer

Powered by FluxBB