Данный метод относится к OpenBSD во FreeBSD немного отличается (местонахождения пакетов и конфигурационных файлов)
Устанавливаем Samba из портов:
cd /usr/ports/net/samba; make install clean CLEANDEPENDS=Yes
export PKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/4.5/packages/i386/ pkg_add samba-3.0.33.tgz
mkdir -p /var/samba/{public,music} chmod 777 /var/samba/public
vi /etc/samba/smb.conf [global] workgroup = WORKGROUP netbios name = Server server string = Samba Server %v security = share hosts allow = 192.168.2. 127. load printers = no guest account = nobody guest ok = yes log file = /var/log/smbd.%m max log size = 1024 interfaces = fxp1 lo0 ; bind interfaces only = yes local master = no os level = 1 domain master = no preferred master = no wins support = no wins proxy = no dns proxy = no dos charset = cp866 unix charset = koi8-r [public] path = /var/samba/public comment = Share folder browseable = yes writable = yes ; create mask = 0644 ; directory mask = 0775 [music] path = /var/samba/music comment = Music files browseable = yes writeable = no
testparm /etc/samba/smb.conf
/usr/local/libexec/smbd -D /usr/local/libexec/nmbd -D
smbclient -U% -L localhost Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.33] Sharename Type Comment --------- ---- ------- public Disk Share folder music Disk Music files IPC$ IPC IPC Service (Samba Server 3.0.33)
vi /etc/rc.local if [ -x /usr/local/libexec/smbd ]; then echo -n ' smbd'; /usr/local/libexec/smbd -D fi if [ -x /usr/local/libexec/nmbd ]; then echo -n ' nmbd'; /usr/local/libexec/nmbd -D fi
vi /etc/inetd.conf 901 stream tcp nowait.400 root /usr/local/libexec/swat swat
kill -HUP `head -1 /var/run/inetd.pid`
vi /etc/stunnel/stunnel.conf [swats] accept = 902 connect = 901
Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer
откорректируй
Я тебе выслал замечание по статье.
Если хочешь разобраться... Так иди и разбирайся!
[ igNix.ru | Технология жизни - технологии будущего ] [ Forum.igNix.ru ]