Установка 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

[common]
    comment = Общая папка  
   path = /srv/common

   directory mask = 0777

   force directory mode = 0777
   create mask = 0666 

   guest ok = Yes    
    read only = No

[private]
        comment = Приватная папка
        create mask = 0600
        directory mask = 0700
        path = /srv/common/private
        read only = No
        valid users = kvictor

[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

Comments powered by CComment