Configurations

Securing and Optimizing Linux: RedHat Edition -A Hands on Guide
Prev | Chapter 31. Software -Server/File Sharing-Network | Next

# 31.4. Configurations

Configuration files for different services are very specific, depending on your need and your network architecture. Someone could install Samba Server and have just one client connection, and another could install it with 1000 connections.

> : All the configuration files required for each software described in this book has been provided by us as a gzipped file, `floppy.tgz` for your convenience. This can be downloaded from this web address: http://www.openna.com/books/floppy.tgz You can unpack this to any location on your local machine, say for example `/tmp`, assuming you have done this your directory structure will be `/tmp/floppy`. Within this floppy directory each configuration file has its own directory for respective software. For example Samba configuration file are organised like this:

>               total 28
>               -rw-r--r--    1 harrypotter    harrypotter         196 Jun  8 13:00 Compile-Samba
>               drwxr-xr-x    2 harrypotter    harrypotter        4096 Jun  8 13:00 init.d/
>               -rw-r--r--    1 harrypotter    harrypotter          94 Jun  8 13:00 lmhosts
>               drwxr-xr-x    2 harrypotter    harrypotter        4096 Jun  8 13:00 logrotate.d/
>               drwxr-xr-x    2 harrypotter    harrypotter        4096 Jun  8 13:00 pam.d/
>               -rwx------    1 harrypotter    harrypotter         282 Jun  8 13:00 samba.sh*
>               -rw-r--r--    1 harrypotter    harrypotter        1157 Jun  8 13:00 smb.conf

> You can either cut and paste this directly if you are faithfully following our instructions from the begining or manually edit these to modify to your needs. This facility is there though as a convenience but please don't forget ultimately it will be your responsibility to check, verify, etc. before you use them whether modified or as it is.

To run a Samba server, the following files are required and must be created or copied to the appropriate directories on your server.

1. Copy the `smb.conf` and lmhosts files in the `/etc/` directory.

2. Copy the `smb` script file in the `/etc/rc.d/init.d/` directory.

3. Copy the `samba` file in the `/etc/logrotate.d/` directory.

4. Copy the `samba` file in the `/etc/pam.d/` directory.

> : To run Samba, the following file from the floppy.tgz archive is required and must be created or copied to the appropriate directory on your server. Copy the *.conf file to the `/etc/` directory. or alternatively you can copy and paste directly from this book to the concerned file.

Prev | Home | Next
Compile and optimize | Up | Configuration of the `/etc/smb.conf` file