From the course: Linux System Engineer: Network Filesystems Using NFS and Samba

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Samba configuration file format

Samba configuration file format - Red Hat Enterprise Linux Tutorial

From the course: Linux System Engineer: Network Filesystems Using NFS and Samba

Start my 1-month free trial

Samba configuration file format

- [Instructor] As I've mentioned in a previous video, the Samba configuration is stored /etc/samba/smb.conf. The format of the file is a long list of key value pairs. Comments can be lines preceded by a semicolon or a hash. Generally, hashes are used for comments about options and the semicolon is used for disabling configuration items. There are two sections, global settings and shared definitions. Global settings are just that and control how Samba works, including how it identifies itself, networking, and what mode it runs in. We can see that the global section is identified by the word global in square brackets. The shared definition section outlines file and printer shares. The shared definition section is everything that's not global and is identified by the shared name in square brackets. The settings in the shared definitions are local to the share itself. There are many options that can be used in the Samba configuration file. To make things more confusing, sometimes there…

Contents