Installation notes for Samba config


1) Paths and files

First edit the Makefile to suit your system.

If the location of 'smbread' is changed, the
cgi scripts in 'scripts/' must be changed to the
correct path also.

2) The 'smb.conf' file

The file 'scripts/init.sh' needs the exact path to
the 'smb.conf' file.

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'

This Makefile works on a linux box with these tool
versions:

make:	3.76.1
g++:	egcs-2.90.29

6) Type 'make install'

This will install the 'smbread' executable, cgi
scripts and 'shares.txt' file.

7) Try it out

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




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.


