歡迎您光臨本站 註冊首頁

samba 配置好了,能讀,寫,刪除文件但是無法創建文件加

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

samba 配置好了,能讀,寫,刪除文件但是無法創建文件加

samba 配置好了,能讀,寫,刪除文件但是無法創建文件加
會是什麼問題呢??

配置文件如下
#======================= Global Settings =====================================
       

        workgroup = Workgroup
        server string = Samba Server
       
;        netbios name = MYSERVER
       
;        interfaces = lo eth0 192.168.0.0/24
        hosts allow = 127. 192.168.0.


;        log file = /var/log/samba/%m.log
        # max 50KB per log file, then rotate
;        max log size = 50
       
# ----------------------- Standalone Server Options ------------------------
        security = user
        passdb backend = tdbsam
# ----------------------- Domain Members Options ------------------------
;        security = domain
;        passdb backend = tdbsam
;        realm = MY_REALM

;        password server = <NT-Server-Name>

# ----------------------- Domain Controller Options ------------------------
;        security = user
;        passdb backend = tdbsam
       
;        domain master = yes
;        domain logons = yes
       
        # the login script name depends on the machine name
;        logon script = %m.bat
        # the login script name depends on the unix user used
;        logon script = %u.bat
;        logon path = \\%L\Profiles\%u
        # disables profiles support by specifing an empty path
;        logon path =         
       
;        add user script = /usr/sbin/useradd "%u" -n -g users
;        add group script = /usr/sbin/groupadd "%g"
;        add machine script = /usr/sbin/useradd -n -c "Workstation (%u)" -M -d /nohome -s /bin/false "%u"
;        delete user script = /usr/sbin/userdel "%u"
;        delete user from group script = /usr/sbin/userdel "%u" "%g"
;        delete group script = /usr/sbin/groupdel "%g"
       
       
# ----------------------- Browser Control Options ----------------------------
;        local master = no
;        os level = 33
;        preferred master = yes
       
#----------------------------- Name Resolution -------------------------------
;        wins support = yes
;        wins server = w.x.y.z
;        wins proxy = yes
       
;        dns proxy = yes
       
# --------------------------- Printing Options -----------------------------
        load printers = yes
        cups options = raw

;        printcap name = /etc/printcap
        #obtain list of printers automatically on SystemV
;        printcap name = lpstat
;        printing = cups

# --------------------------- Filesystem Options ---------------------------
;        map archive = no
;        map hidden = no
;        map read only = no
;        map system = no
;        store dos attributes = yes


#============================ Share Definitions ==============================
       

##myshare
       
       comment = myshare
        browseable = yes
       path = /www
        valid users = root
       public = no
       writable = yes
       printable = no
        create mask = 0766
《解決方案》

搞定了,關掉了selinux

[火星人 ] samba 配置好了,能讀,寫,刪除文件但是無法創建文件加已經有462次圍觀

http://coctec.com/docs/service/show-post-29345.html