Skip to content

smb.conf

Calin Crisan edited this page Feb 2, 2019 · 1 revision

File Location And Role

The file lives at /etc/samba/smb.conf. It is not present by default and should be created by the user, if Samba is needed.

If the file is present, the Samba daemons will be started to make your system act as an SMB server.

Note that samba package is not enabled by default in thingOS. You'll need to enable it in your configurations to have this functionality.

File Format

Here is the documentation on how to configure Samba.

Example

Following is a simple example of a Samba configuration that will enable a simple SMB server with one share for the data partition and a share for all externally mounted drives. It also includes a user configuration file present at /data/etc/smb.conf:

[global]
   workgroup = THINGOS
   server string = thingOS
   security = user
   map to guest = bad user
   encrypt passwords = yes
   private dir = /var/lib/samba/private
   public = no
   writable = no
   include = /data/etc/smb.conf
   load printers = no
   printing = bsd
   printcap name = /dev/null
   disable spoolss = yes
   log level = 0
   syslog = 0
   preferred master = no
   domain master = no
   local master = no
   os level = 0

[sdcard]
   comment = SD Card Directory
   path = /data

[storage]
   comment = Attached Storage Devices
   path = /data/media
Clone this wiki locally