2011年3月10日 星期四

samba /etc/samba/smb.conf 設定檔

[root@linux ~]# cd /etc/samba
[root@linux samba]# cp smb.conf smb.conf.raw  <==先備份再說!
[root@linux samba]# vi smb.conf
# 先設定好主機方面的參數
[global]
        # 與主機名稱有關的設定資訊 
        # workgroup 可以是domain name
        workgroup     = HUKO
        netbios name  = vbirdserver
        server string = This is vbird's samba server

        # 與語系方面有關的設定項目喔,為何如此設定請參考前面的說明
        unix charset    = utf8
        display charset = utf8
        dos charset     = cp950

        # 與登錄檔有關的設定項目,注意變數 (%m)
        log file = /var/log/samba/%m.log
        max log size = 50

        # 這裡才是與密碼有關的設定項目哩!
        security = share

        # 其他預設存在的項目
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        dns proxy = no
        template shell = /bin/false
        winbind use default domain = no

# 底下則是針對 /tmp 的設定而來的!可瀏覽且可寫入喔!
[temp]
        comment   = Temporary file space
        path      = /tmp
        read only = no
        public    = yes

沒有留言:

張貼留言