无法通过 samba 共享修改/删除文件

无法通过 samba 共享修改/删除文件

我的 Linux 计算机上有一个目录,我想将其共享到 Windows 计算机。我希望能够从 Windows PC 修改/删除这些文件。我已经安装并正在使用 Samba 来共享目录。我可以从 Windows 查看目录,但是无法重命名文件(修改)或删除文件。当我尝试这样做时,我收到一条错误消息:“您需要 Unix User\root 的权限才能更改此文件”。

这是我的 smb 文件(它变得有点混乱):

[global]
    unix charset = UTF-8
    dos charset = CP932
    workgroup = WORKGROUP
    server string = Samba Server Version %v
    security = SHARE
    passdb backend = tdbsam
    username map = /etc/samba/smbusers
    hosts allow = 127., 10., 192.168., 172.
    cups options = raw

[printers]
        comment = All Printers
        path = /var/spool/samba
        browseable = no
        guest ok = no
        writable = no
        printable = yes

[VRL]
   path = /opt/vmpro/VRL
   writable = yes
   guest ok = yes
   guest only = yes
   create mode = 0777
   directory mode = 0777
   share modes = yes
   readonly = no

smbusers

nobody=*

stat /opt/vmpro/VRL 返回以下内容:

  File: `/opt/vmpro/VRL'
  Size: 819200          Blocks: 1608       IO Block: 4096   directory
Device: 803h/2051d      Inode: 4989348     Links: 3
Access: (0777/drwxrwxrwx)  Uid: (  495/   vmpro)   Gid: (  490/   vmpro)
Access: 2017-01-20 17:13:52.000000000 -0500
Modify: 2017-01-20 17:14:00.000000000 -0500
Change: 2017-01-20 17:14:00.000000000 -0500

我究竟做错了什么?

编辑:根据请求,这是文件 ls 的结果。请注意,我也更改了它的权限,但结果仍然没有改变。

[root@000C290909A5 VRL]# ls -l /opt/vmpro/VRL/MSG366229159120586_192.168.80.29.wav
-rw-rw-r--. 1 vmpro vmpro 52122 Jan 19 10:13 /opt/vmpro/VRL/MSG366229159120586_192.168.80.29.wav
[root@000C290909A5 VRL]# chmod 0777 MSG366229159120586_192.168.80.29.wav
[root@000C290909A5 VRL]# ls -l /opt/vmpro/VRL/MSG366229159120586_192.168.80.29.wav
-rwxrwxrwx. 1 vmpro vmpro 52122 Jan 19 10:13 /opt/vmpro/VRL/MSG366229159120586_192.168.80.29.wav

相关内容