Sams Teach Yourself Samba in 24 Hours

ContentsIndex

Hour 4: Installing and Testing the Configuration

Previous HourNext Hour

Sections in this Chapter:

 

Command-Line Arguments

In Hour 3, I made several mentions of overriding default behavior in Samba using either command-line arguments or parameters in smb.conf. Most of the smb.conf parameters will be covered in Hour 5. This section briefly covers some of the common command-line arguments that are available. The best references for current options are the smbd and nmbd man pages. The man pages for the Samba suite are installed if you did a make install to copy the binaries. If so, you can access the pages using the standard man command.

If you did not install them, the man pages should be included with the Samba distribution in docs/ for pre-2.0 Samba releases and docs/manpages/ for versions 2.0 and greater. To view the man pages, locate the files smbd.8 and nmbd.8 and use the nroff command to display them:

nroff -man smbd.8 | more

Table 4.1  Common smbd/nmbd Command-Line Arguments

Option

Description

-D

Runs as a daemon, meaning that the process runs in the background servicing requests. This is the preferred way to run smbd for a file server that does more than replying to infrequent requests. The default behavior is to not run as a daemon.

-d debuglevel

Specifies the debug level at which the process should run. The debug level is an integer between 1 and 10.

-l log file

Path to the file where the process should write log entries.

-s config file 

Path to the configuration file that the process should use.

Table 4.1 lists some common options for smbd and nmbd. For a complete list, please read the man pages on the respective process.

Sams Teach Yourself Samba in 24 Hours

ContentsIndex

Hour 4: Installing and Testing the Configuration

Previous HourNext Hour

Sections in this Chapter: