Configuring Samba
Because of the infinate number of possible uses for
Samba, configuration is well beyond the scope
of the BLFS book. In fact, many complete books have been written on
this topic alone. The included documentation, a popular book published by
O'Reilly, can be viewed by pointing your web browser to:
file:///usr/share/samba/swat/using_samba/toc.html
The built in SWAT (Samba Web Administration Tool) utility
can be used for the very basic of configurations. However, before
using SWAT, you must do a little configuration.
Add the swat entry to /etc/serviceswith the
following command:
echo "swat 901/tcp" >> /etc/services
If inetd is used, the following command will add the
swat entry to /etc/inetd.conf:
echo "swat stream tcp nowait.400 root /usr/sbin/swat swat" \
>> /etc/inetd.conf
If xinetd is used, the following command will add the swat entry
to /etc/xinetd.conf:
cat >> /etc/xinetd.conf << "EOF"
service swat
{
port = 901
socket_type = stream
wait = no
only_from = 127.0.0.1
user = root
server = /usr/sbin/swat
log_on_failure += USERID
}
EOF
SWAT can be launched by pointing your web
browser to:
For your convenience, boot scripts have been provided for
Samba. There are two included in the
package. The first,
samba, will start the smbd and
nmbd daemons needed to provide
SMB/CIFS services. The second
script, winbind, starts the winbindd
daemon, used for providing Windows domain services to Linux clients.
Install the samba script with the following
command:
make install-samba
If you also need the winbind script:
make install-winbind