Установка Samba на Freebsd 11

Unix > Установка Samba на Freebsd 11
12.12.2016 16:23:38


Наиболее часто встречающиеся слова в статье:

[security] [smbuser] [install] [org/index] [following] [/srv/samba/smbuser] [browseable] [directory] [Установка] [/usr/ports/net/samba44]


Статья:

Установка из портов
cd /usr/ports/net/samba44
make install clean
или pkg install samba44
Прописываем в rc.d sysrc samba_server_enable=yes
sysrc samba_enable=yes
sysrc nmbd_enable=yes
sysrc smbd_enable=yes
Запуск
service samba_server start

How to start: http://wiki.samba.org/index.php/Samba4/HOWTO

* Your configuration is: /usr/local/etc/smb4.conf

* All the relevant databases are under: /var/db/samba4

* All the logs are under: /var/log/samba4

* Provisioning script is: /usr/local/bin/samba-tool

For additional documentation check: http://wiki.samba.org/index.php/Samba4

Bug reports should go to the: https://bugzilla.samba.org/
This port has installed the following startup scripts which may cause
these network services to be started at boot time.
/usr/local/etc/rc.d/samba_server

If there are vulnerabilities in these programs there may be a security
risk to the system. FreeBSD makes no guarantee about the security of
ports included in the Ports Collection. Please type ''make deinstall''
to deinstall the port if this is a concern.

For more information, and contact details about the security
status of this software, see the following webpage:
http://www.samba.org/

добавление пользователя
sudo adduser smbuser
sudo smbpasswd -a smbuser
sudo mkdir -p /srv/samba/smbuser
sudo chown smbuser:smbuser /srv/samba/smbuser
В /etc/samba/smb.conf дописываем например:
[global]
dns proxy = no

log file = /var/log/samba4/log.%m

max log size = 1000

syslog = 0


server role = standalone server


security = user
null passwords=true
username map =/usr/local/etc/smbusers
wins support =no


[BUFER_IOCSHA]
path=/home/iocsha
browseable = yes
read only = no
guest ok = no
create mask = 0644
directory mask = 0755
force user = iocsha


[WWW_IOCSHA]
path=/usr/local/www/apache24/data
browseable = yes
read only = no
guest ok = no
create mask = 0755
directory mask = 0755
force user = iocsha