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

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

Sambaサーバのインストール

# pkg install samba36

/usr/local/etc/smb.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

smb.confの整合性確認

# testparam -v

/etc/rc.conf

samba_enable="YES"
winbindd_enable="YES"

ユーザ作成

# pdbedit -a -u hiraga
# pdbedit -L -v

起動

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