-
Notifications
You must be signed in to change notification settings - Fork 48
smb.conf
Calin Crisan edited this page Feb 2, 2019
·
1 revision
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.
Here is the documentation on how to configure Samba.
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
- bluetooth.conf
- captive-portal.conf
- cpufreq.conf
- date.conf
- dnsmasq.conf
- docker-compose.yml
- dtoverlays
- dyndns-update.sh
- environment
- firewall.sh
- fstab.user
- hostapd.conf
- ifalias.conf
- localtime
- modprobe.conf
- modules
- mongodb.conf
- netwatch.conf
- ntp.conf
- os.conf
- proftpd.conf
- redis.conf
- smb.conf
- ssh/config
- ssh/sshd_config
- ssl/domain
- ssl/email
- static_ip.conf
- sysctl.conf
- toemmc.conf
- version
- watchdog.conf
- wpa_supplicant.conf