Инструменты пользователя

Инструменты сайта


freebsd:samba

Установка Samba на FreeBSD

/usr/ports/net/samba410
make install clean

Если в процессе установки получаю ошибку

===>  llvm80-8.0.1_3 needs Python 3.6 at least, but 2.7 was specified.
*** Error code 1

Stop.
make[8]: stopped in /usr/ports/devel/llvm80
*** Error code 1

В файле /etc/make/conf добавляю строку

PYTHON_VERSION=python3.6

перехожу в /usr/ports/devel/llvm80 и запускаю установку

cd /usr/ports/devel/llvm80
make install clean

Настройка

Создаю в папке /usr/local/etc/ создаю файл smb4.conf

cat /usr/local/etc/smb4.conf
[global]
      bind interfaces only = Yes
      dos charset = cp866
      unix charset = utf8
      interfaces = 10.215.130.20/24
      netbios name = FILE-SERVER
      server string = KLOTIK Server
      workgroup = KLOTIK
      domain master = No
      os level = 33
      preferred master = Yes
      log file = /var/log/samba/log.%m
      max log size = 500
      load printers = No
      security = USER
      idmap config * : backend = tdb
      hosts allow = 10.215.130.0/24
      map to guest = Bad Password
      guest account = nobody

[torrent]
      comment = torrent downloads
      path = /mnt/torrent/Downloads
      public = yes
      writable = yes
      read only = No
      create mask = 0777
      directory mask = 0777

Запуск

freebsd/samba.txt · Последние изменения: 2020/01/03 19:30 (внешнее изменение)