# Samba

### Example smb.conf

> /etc/samba/smb.conf

```
#======================= Global Settings =======================
[global]
   workgroup = WORKGROUP
   server role = standalone server
   #interfaces = lo ens33 ens224f0
   #bind interfaces only = yes

   log file = /var/log/samba/log.%m
   max log size = 10000
   logging = file

   server min protocol = SMB3
   client min protocol = SMB3

   map to guest = bad user
   guest account = nobody

#======================= Shares ================================
[Data]
browseable = yes
writeable = yes
available = yes
path = /mnt/md0/data/
read only = no
create mode = 0775
directory mode = 0755
guest ok = yes


[Media]
browseable = yes
writeable = yes
available = yes
path = /mnt/md0/media/
read only = no
create mode = 0775
directory mode = 0755
guest ok = yes


[Backup]
browseable = yes
writeable = yes
available = yes
path = /mnt/md0/backup/
read only = no
create mode = 0775
directory mode = 0755
guest ok = yes


[Development]
browseable = yes
writeable = yes
available = yes
path = /mnt/nvme2/
read only = no
create mode = 0775
directory mode = 0755
guest ok = yes


[Download]
browseable = yes
writeable = yes
available = yes
path = /mnt/nvme3/
read only = no
create mode = 0775
directory mode = 0755
guest ok = yes

[NVMe1]
browseable = yes
writeable = yes
available = yes
path = /mnt/nvme1/
read only = no
create mode = 0775
directory mode = 0755
guest ok = yes

[SSD1-VM]
browseable = yes
writeable = yes
available = yes
path = /mnt/ssd1/
read only = no
create mode = 0775
directory mode = 0755
guest ok = yes

[SSD2-VM]
browseable = yes
writeable = yes
available = yes
path = /mnt/ssd2/
read only = no
create mode = 0775
directory mode = 0755
guest ok = yes
```
