Настройка samba
Posted: 06 May 2022, 10:16
Ставим:
Правим конфиг /etc/samba/smb.conf
Для примера оставлю тут свой:
hosts allow = 192.168. прописано для ограничения доступа из интернета, доступ будет только с локальных адресов.
Code: Select all
emerge samba
Для примера оставлю тут свой:
Code: Select all
[global]
workgroup = WORKGROUP
security = user
map to guest = bad user
wins support = no
dns proxy = no
hosts allow = 192.168.
[Video3Tb]
comment = Video 3Tb
path = /mnt/video3tb
browseable = yes
writable = yes
read only = no
guest ok = yes
force user = nobody
[Video4Tb]
comment = Video 4Tb
path = /mnt/video4tb
browseable = yes
writable = yes
read only = no
guest ok = yes
[Series3Tb]
comment = Series 3Tb
path = /mnt/series3tb
browseable = yes
writable = yes
read only = no
guest ok = yes
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes