FreeBSD/Samba

#依存関係で必要なものを入れる
setenv PACKAGEROOT ftp://ftp3.jp.FreeBSD.org
pkg_add -rv samba36
pkg_delete samba36-3.6.7
#swatを有効にしたオリジナルパッケージ
pkg_add -v /mnt/samba36-3.6.7.tbz 

アカウント追加

pdbedit -a "USER"
/etc/inetd.conf
swat    stream  tcp     nowait/400      root    /usr/local/sbin/swat    swat

/etc/rc.conf

service inetd restart
service samba start
samba_enable="YES"
# cat /usr/local/etc/smb.conf
[global]
       unix charset = CP932
       workgroup = ZENNO
       server string =
       guest account = admin
       log file = /var/log/samba/log.%m
       max log size = 50
       recycle:maxsize = 0
       recycle:versions = yes
       recycle:touch = yes
       recycle:keeptree = yes
       recycle:repository = .recycle
       idmap config * : backend = tdb
       hosts allow = 192.168., 127., 10.
       vfs objects = recycle

[test]
       path = /pub1/test/
       read only = No
       guest ok = Yes

[test2]
       path = /pub2/test2/
       read only = No
       guest ok = Yes

[http://www.samba.gr.jp/project/translation/Samba3-HOWTO/index.html]

chown admin /data/pub
[global]
        dos charset = CP932
        display charset = UTF-8
        workgroup = ZENNO
        netbios name = AYAME
        server string =
        guest account = admin
        log file = /var/log/samba/log.%m
        max log size = 50
        idmap config * : range =
        recycle:maxsize = 0
        recycle:versions = yes
        recycle:touch = yes
        recycle:keeptree = yes
        recycle:repository = .recycle
        idmap config * : backend = tdb
        hosts allow = 192.168., 127., 10.
        vfs objects = recycle
        # admin users = admin
        # create mask = 0775
[pub]
        path = /data/pub
        read only = No
        guest ok = Yes

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2012-11-29 (木) 08:42:06 (4410d)