過去のSamba 3.6のインストールはこちら

FreeBSDでぱぱっとSambaサーバを動かす

ActiveDirectoryとか面倒なことは考えずに単にWindowsからマウントします。

Sambaサーバのインストール

# pkg install samba44

/usr/local/etc/smb4.conf

[global]
        dos charset = CP932
        unix charset = UTF-8
        workgroup = WORKGROUP
        server string = Samba
        encrypt passwords = Yes
        security = user
        interfaces = 192.168.0.0/24
        bind interfaces only = Yes
        hosts allow = 192.168.0.
        printing = bsd

[homes]
        comment = Home Directories
        writeable = Yes
        veto files = /.??*/
        browseable = No
        read only = No

smb4.confの整合性確認

# testparm -v

/etc/rc.conf

samba_server_enable="YES"
winbindd_enable="YES"

ユーザ作成

# pdbedit -a -u user
# pdbedit -L -v

起動

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