我没有 samba 共享的写权限

我没有 samba 共享的写权限

我尝试使用版本 4.10.6 在 Samba 共享上创建文件,但是失败了。

我使用了 Samba 文件夹/home/ppp/share,内容如下 smb.conf

#
#======================= Global Settings =====================================
[global]

   workgroup = MYGROUP

   server string = Samba Server

   vfs objects = full_audit
   full_audit:prefix = [%U:%g@%I]
   full_audit:success = all
   full_audit:failure = all
   full_audit:facility = local7
   full_audit:priority = info

   server role = standalone server

   log file = /usr/local/samba/var/log.%m

   max log size = 50

   dns proxy = no 

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

[public]
   path = /home/ppp/share
   available = yes
   valid users = ppp
   read only = no
   browseable = yes
   public = yes
   create mask = 0777
   directory mask = 0777
   force user = ppp

我已经smbpasswd添加用户ppp,共享名称是public

但我只能读取和写入现有文件,但无法创建文件。

我尝试了两种方法:

  1. 将其安装到另一台安装有 samba ver 4.3.11 的 Ubuntu 服务器上:

    $ sudo mount -t cifs -o username=ppp,password=admin //192.168.80.108/public /home/otherppp/share
    $ touch /home/otherppp/share/hihi
    $ cannot touch /home/otherppp/test/hihi: Input/output error
    
  2. 从 Windows 10 共享创建新文件:

     Can't create file...
    

谁能帮我?

=============== 更新 ================

当我将 samba 版本从 4.3.11 更新到 4.10.6 时,问题就解决了。

相关内容