Article 6CY2E File transfer fails: iPhone to Samba on Ubuntu

File transfer fails: iPhone to Samba on Ubuntu

by
LinuxOnly
from LinuxQuestions.org on (#6CY2E)
I am trying to transfer files using the Files app between an iPhone 8 running iOS 16.5.1 and a PC running Xubuntu 22.04. I am posting it here because SMB transfer to a Synology NAS works fine so I don't blame the phone.
An attempt to upload e.g. a file "IMG_8833.JPG" to the PC results in an error message on the phone:
Code:The operation couldn't be completed. File name too longI have also seen it, with smaller files, give the same error but put a zero-length file with the correct -full- name into the target directory.
The upload directory is defined thus in /etc/samba/smb.conf (output of testparm):
Code:[global]
bind interfaces only = Yes
client min protocol = NT1
interfaces = eno1
log file = /var/log/samba/log.%m
logging = file
map to guest = Bad User
max log size = 1000
obey pam restrictions = Yes
pam password change = Yes
panic action = /usr/share/samba/panic-action %d
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
passwd program = /usr/bin/passwd %u
security = USER
server role = standalone server
server string = %h server (Samba, Ubuntu)
unix password sync = Yes
usershare allow guests = Yes
idmap config * : backend = tdb

[Public]
comment = Public directory
create mask = 0775
guest ok = Yes
path = /home/steinbach/Public
read only = NoI have done smbpasswd -a and smbpasswd -e with my login, and I have the firewall open for Samba (ufw status):
Code:To Action From
-- ------ ----
Samba ALLOW 192.168.1.0/24The end of /var/log/samba/log.smbd is
Code:2023/07/12 16:34:30.549598, 0] ../../source3/smbd/server.c:1734(main)
smbd version 4.15.13-Ubuntu started.
Copyright Andrew Tridgell and the Samba Team 1992-2021Is this an encoding issue? The word encoding does not appear in smb.conf. The phone shows the contents of the Public directory but it's all grayed out.
Any pointers? Any other information I should post?
Thank you
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments