Installation notes for Sambaconfig
==================================

There are two ways to install sambaconfig. One is installing
it as a daemon run by inetd, and the other is as a program
called by cgi scripts by a running web server.

This file contains instructions to setup sambaconfig to
work with a web server.


1) Paths and files

Edit Makefile.in to suit your system. Don't change values
that looks like @this@, they are set by the configure
script.
Remember to protect your cgi-bin directory from unwanted
access.


2) Run the configure script like this:

$ ./configure


To get help about using the configure script, type:

$ ./configure --help


3) Backup your 'smb.conf' file

Make sure you have up to date backups of the 'smb.conf'
file and include files, if any.


4) config/shares.txt

Add more share types in this file, if you wish. The
first five share types must not be changed.


5) Type 'make'

If everything is compiled ok, move along...
If not, email me (ah@instrumentpolen.se) with a report of your
problem.


6) Type 'make install'

This will install the 'smbread' executable, cgi
scripts and 'shares.txt' & 'forms.txt' files.


7) Try it out

http://<your web server>/<your cgi directory>/init.sh


More customization
==================

Look at the files in 'config/' named forms.txt,
form1, form2, etc.

This is where custom forms are defined. The format of the
files are described in each file.


Security notes
==============

Make sure the cgi script can write a new config
file in the config file directory. Remember to secure
access to the cgi scripts on your web server, so no
unauthorized users can change the smb.conf file.

