[PukiWiki:freebsd] FreeBSD/Ports/Samba

最終更新日: 2010/08/08 19:34:46

インストール

# portinstall converters/libiconv
# portinstall net/samba34

設定

# vi /usr/local/etc/smb.conf
[global]
   workgroup = WORKGROUP
   netbios name = SMB
   server string = Samba Server

   hosts allow = 192.168.1.

   load printers = no
   disable spoolss = yes
   printcap name = /dev/null
   log file = /var/log/samba/log.%m

   socket options = IPTOS_LOWDELAY TCP_NODELAY

   dns proxy = no

   display charset = UTF-8
   unix charset = UTF-8
   dos charset = CP932

[home]
   comment = Home Directories
   browseable = no
   writable = yes

[share]
   comment = Shared Directories
   path = /home/share
   public = yes
   browseable = yes
   writable = yes
   create mode = 770

自動起動の設定

# vi /etc/rc.conf
samba_enable="YES"

起動

# /usr/local/etc/rc.d/samba start

ユーザーの追加

# pdbedit -a -u user

リンク