Previous Next Contents

3. Installation

The latest source version of Samba is available from:

However, if you have installed the Redhat distribution of linux, you have the option of installing it as a package. Some other distributions also include the Samba binaries.

The following two daemons are required for the Samba package. They are typically installed in /usr/sbin and run either on boot from the systems startup scripts or from inetd. Example scripts are shown in Running the Daemons.

        smbd (The SMB daemon)
        nmbd (Provides NetBIOS nameserver support to clients)

Typically, the following Samba binaries are installed in /usr/bin, although the location is optional.

        smbclient       (An SMB client for UNIX machines)
        smbprint        (A script to print to a printer on an SMB host)
        smbprint.sysv   (As above, but for SVR4 UNIX machines)
        smbstatus       (Lists the cuurent SMB connections for the local host)
        smbrun          (A 'glue' script to facilitate runnning applciations
                         on SMB hosts)

Additionally, a script called 'print' is included with this HOWTO, which serves as a usefull front end to the smbprint script.

The Samba package is simple to install. Simply retrieve the source from the location mentioned above, and read the file README in the distribution. There is also a file called docs/INSTALL.txt in the distribution that provides a simple step-by-step set of instructions.

Following installation, place the daemons in /usr/sbin and the binaries in /usr/bin. Install the man pages in /usr/local/man.

When you made the Samba package, you would have specified in the Makefile the location for the configuration file, smb.conf. This is generally in /etc, but you can put it anywhere you like. For these directions, we will presume that you specified the location of the configuration file as /etc/smb.conf, the log file location as log file = /var/log/samba-log.%m and the lock directory as lock directory = /var/lock/samba.

Install the configuration file, smb.conf. Go to the directory where Samba was built. Look in the subdirectory examples/simple and read the file README. Copy the file smb.conf found in that directory to /etc. BE CAREFUL! If you have a linux distribution that already has Samba installed, you may already have a Samba configuration file in /etc. You should probably start with that one.

If you don't want to have your configuration file in /etc, put it wherever you want to, then put a symlink in /etc:

        ln -s /path/to/smb.conf /etc/smb.conf

Previous Next Contents