I tried to create a file on a samba share with ver 4.10.6 but failed.
I used the folder /home/ppp/share
for samba, with the following
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
I already did smbpasswd
to add user ppp
and the share name is public
But I only can read and write in existing files, but can't create file.
I tried two ways:
Mount it an another Ubuntu server which install samba ver 4.3.11:
$ 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
Create new file from a Windows 10 share:
Can't create file...
Can anyone help me?
=============== udpate ===============
When I update the samba version from 4.3.11 to 4.10.6, it solved.
/home/ppp/share
?777
too?777
(world-read-write-execute) and try again. I can also see some discrepancies between your share/home/ppp/share
and the mount itselfpublic /home/otherppp/test
so double-check that too and edit your question and feed back please.