Info
Content

Samba

Samba config cheatsheet

 

sudo nano /etc/samba/smb.conf

Add user "root" sudo smbpasswd -a root

sudo only on UBUNTU & co

Basic
[global]
    log file = /var/log/samba/log.%m
    max log size = 1000
    workgroup = WORKGROUP
    read raw = Yes
    server signing = No
    write raw = Yes
    hide files = /lost+found/

[WebServer]
    path = /var/www/example
    available = yes
    valid users = root
    read only = no
    browsable = yes
    public = no

[raspberry]
    path = /var/www/raspberry
    available = yes
    valid users = pi
    read only = no
    browsable = yes
    public = no
Apple Time Machine

Minimum: UBUNTU 18.10/Samba 3.8

[global]
    log file = /var/log/samba/log.%m
    max log size = 1000
    workgroup = WORKGROUP
    read raw = Yes
    server signing = No
    write raw = Yes
    hide files = /lost+found/

# Special configuration for Apple's Time Machine
    fruit:model = MacPro
    fruit:advertise_fullsync = true
    fruit:aapl = yes

[TimeMachine]
    path = /TimeMachine/
    valid users = root
    writable = yes
    durable handles = yes
    kernel oplocks = no
    kernel share modes = no
    posix locking = no
    vfs objects = catia fruit streams_xattr
    ea support = yes
    browseable = yes
    read only = No
    inherit acls = yes
    fruit:time machine = yes
No Comments
Back to top