php无法删除已安装的samba share -permissions上的文件

时间:2014-09-25 13:46:23

标签: apache file-permissions samba

我的头发是灰色的(或通常的灰色)试图解决这个谜语。

运行:ubuntu 12.04 LTS

我想要一个PHP脚本(由apache执行)删除一个目录,其中包含cifs挂载目录中包含所有文件的目录。但我得到“许可被拒绝”。

该文件由另一个samba客户端创建。

我尝试过并试过各种不同的设置,但现在我需要一些新鲜的眼睛

任何评论都表示赞赏 B.R Lars

文件:

-rw-rw-rw- 1 countmaster countmaster 60897298 Sep 25 12:13 row_15.52.gz

包含目录:

drwxrwxr-x  2 countmaster countmaster 4096 Sep 25 13:34 SYNFR1.14247NEVB.1405281044/

服务器smb.conf(我使用了默认值稍作修改):

[global]
        server string = %h server (Samba, Ubuntu)
        map to guest = Bad User
        guest account = countmaster
        obey pam restrictions = Yes
        pam password change = Yes
        passwd program = /usr/bin/passwd %u
        passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
        unix password sync = Yes
        syslog = 0
        log file = /var/log/samba/log.%m
        max log size = 1000
        dns proxy = No
        usershare allow guests = Yes
        panic action = /usr/share/samba/panic-action %d
        idmap config * : backend = tdb

[printers]
        comment = All Printers
        path = /var/spool/samba
        create mask = 0700
        printable = Yes
        print ok = Yes
        browseable = No

[print$]
        comment = Printer Drivers
        path = /var/lib/samba/printers

[share]
        comment = Countmaster File Server Share
        path = /nfs/countdata
        read only = No
        writeable =YES
        create mask = 0777
        force directory mode = 0755
        guest ok = Yes

客户端/ etc / fstab:

//192.168.1.10/share /home/countserver/public_html/countdata  cifs auto,users,noperm,rw,guest,exec,actimeo=0 0 0

0 个答案:

没有答案