Samba Fileserver With SWAT On Fedora 8
Author: Oliver Meyer <o [dot] meyer [at] projektfarm [dot] de>
Last edited 11/27/2007
This document describes how to set up and configure a Samba fileserver on Fedora 8 with the Samba Web Administration Tool (SWAT). The resulting system provides an easy to use fileserver for your Windows network.
This howto is a practical guide without any warranty - it doesn't cover the theoretical backgrounds. There are many ways to set up such a system - this is the way I chose.
1 Preliminary Note
I used a minimal Fedora 8 installation without GUI etc for this howto. Additionally I had to deinstall Firefox after the minimal installation.
- Hostname: server1.example.com
- IP: 192.168.0.100
First we install some packages to speed up yum and prevent problems with packages.
yum install yum-fastestmirror yum-skip-broken
SELinux should be disabled. If you're not sure if it is disabled enter:
cat /etc/selinux/config | grep ^SELINUX=
Disable SELinux if it is enabled:
Afterwards reboot the system:
Time to update your system:
Now we install Samba and the Samba Web Administration Tool.
yum install samba samba-swat
4 Basic Configuration
We have to open a few ports so that the clients can connect to Samba:
Set Samba as a trusted service.
If you set up a server without GUI you have to add an additional IP to the swat configuration to use the swat-webinterface.
only_from = 127.0.0.1
only_from = 127.0.0.1 %additional_ip%
Now we enable the automatic startup of the needed services.
chkconfig smb on
chkconfig nmb on
chkconfig swat on
Afterwards reboot the system.