cd /usr/ports/net/samba44/ make install clean
Я выбрал только SYSLOG – Syslog logging support.
Конф файл smb4.conf находиться/создается по пути
/usr/local/etc/
В нем прописываем такие настройки:
[global] workgroup = ASUS server string = tst home samba server security = user map to guest = bad password guest ok = yes load printers = no # log file = /var/log/samba4/log.%m vfs object = full_audit full_audit:prefix = %u|%I full_audit:failure = none full_audit:success = mkdir rmdir open read close pread write pwrite sendfile rename unlink lock full_audit:facility = local5 full_audit:priority = notice netbios name = tst max log size = 50 interfaces = lo, alc0 bind interfaces only = true dns proxy = no #display charset = koi8-r unix charset = koi8-r dos charset = cp866 [share] comment = Films and Music path = /home/share public = yes browseable = yes writable = yes guest ok = yes read only = no #write list = @wheel [data] comment = Films and Soft public = yes writable = yes path = /home/data read only = No guest ok = Yes browseable = Yes [homes] comment = Home Directories browseable = no read only = no
Дописываем:
echo 'samba_server_enable="YES"' >> /etc/rc.conf
Запускаем
# service samba-server start
Пробуем войти
192.168.1.41/data 192.168.1.41/share