Files
infra/stacks/rpi-share/smb.conf
T

45 lines
1.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Samba на rpi — просмотр бэкапа OneDrive с Mac (Finder → smb://rpi.local). Только чтение.
# Доступ: только домашняя сеть, только пользователь rus (пароль Samba — отдельный, smbpasswd -a rus).
[global]
workgroup = WORKGROUP
server string = rpi
server role = standalone server
interfaces = lo eth0
bind interfaces only = yes
hosts allow = 192.168.10.0/24 127.0.0.1
hosts deny = 0.0.0.0/0
server min protocol = SMB2_10
map to guest = never
restrict anonymous = 2
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
log file = /var/log/samba/log.%m
max log size = 1000
logging = file
# macOS: Finder, Quick Look, превью, корректные имена с «:» и др.
vfs objects = catia fruit streams_xattr
fruit:metadata = stream
fruit:model = MacSamba
fruit:posix_rename = yes
fruit:veto_appledouble = no
fruit:nfs_aces = no
fruit:wipe_intentionally_left_blank_rfork = yes
fruit:delete_empty_adfiles = yes
multicast dns register = yes
[onedrive]
comment = Зеркало OneDrive (бэкап rpi), только чтение
path = /mnt/backup/onedrive/current
read only = yes
valid users = rus
browseable = yes
[onedrive-archive]
comment = Всё, что удалили или перезаписали в OneDrive (вечный архив), только чтение
path = /mnt/backup/onedrive/archive
read only = yes
valid users = rus
browseable = yes