Pick a Free OS

User login

Navigation

Doing the Samba

swat stream tcp nowait.400 root /usr/sbin/swat swat

If it has a hash mark '#' in front of it then remove that and restart

inetd. If the line is there but there is not '#' in front of it then the

service is not started. If the line is just not there then add the line

above.

killall -HUP inetd -> will restart inetd and start swat.

To access swat you need to point your browser to your-machine:901. This

would be http://foomachine:901.

From this web interface, you can maintain your shares as well as monitor

active connections. You can also restart the Samba service through this

interface.

File sharing

File sharing is probably the first thing that you will want to set-up on

your network. It is also the easiest thing to set-up in Linux. Take the

example smb.conf file and modify that to your liking or just take mine as

a start.

Each file share will follow a generic definition format

[Sharename]

comment = Any comment

path = /home/Public

read only = no

Public = yes

Sharename: Enter any name as the section header. When a client want to connect

to that share then this is the name they will use to connect to it.

e.g //servername/sharename

Comment: A description of your share

Path: The path to the directory that you want to share.

Read only: Enter your preference for access to the directory here. If you

want to allow write access to that directory access then make sure that

the permissions of the directory are 777. Do a chmod 777 to set

the correct file permissions. Not very secure but it's good enough for a

small trusted network or a home network.

Public: If you want to allow guest access to your share then say yes

here. You will want to use this if you're going to give access to shares

without password validation.

Ok, so Windows machines on your network can now see you in their network

neighbourhood and access any shares that you may have defined.

If you want to access the Windows computer then you need to download some

stuff. Samba does include a command-line program to access external shares

but it's not very easy to use. A much better option is to use a GUI client