105207879

Установка Samba Debian 12

Установка Samba
apt install -y samba
Смена владельца и группы: chown -R user:sambashare /srv/common
Установка прав на папки и файлы:  chmod -R 774 /srv/common
После настройки 
systemctl restart smb

Conf:

[global]
    log file = /var/log/samba/log.%m
    map to guest = Bad User
    max log size = 1000
    security = USER
    server role = standalone server
    unix charset = UTF-8

[common]
comment = Общая папка  
path = /srv/common
directory mask = 0777
force directory mode = 0777
create mask = 0666
guest ok = Yes
read only = No

[private]
comment = Приватная папка
security = user
writable = yes
guest ok = no
valid users = @sambashare
force group = sambashare
force create mode = 770
force directory mode = 770
inherit permissions = yes
path = /srv/common/private

[printers]
comment = All Printers
browseable = no
path = /var/tmp
printable = yes
guest ok = no
read only = yes
create mask = 0700

[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no

Добавить комментарий