Fixing ‘The operation couldn’t be completed. File name too long.’ error when saving files from iPhone’s ‘Files’ app to a Linux SMB share.

Hello beautiful peoples!

I am running an SMB server on Debian 12 Bookworm. Many different devices (running different operating systems) read and write data to and from that server. Recently, I have noticed that when sending some files from my iPhone to that share, it produces the error message: ‘The operation couldn’t be completed. File name too long.’

To fix this issue add:

vfs objects = catia fruit streams_xattr

to your

 /etc/samba/smb.conf

and restart the smb service.

systemctl restart smb

The problem was gone for me after that.

I hope this helps!

Catch you on the flip side,

AndrzejL

Avatar photo

AndrzejL

“Some men just want to watch the world burn.”

Leave a Reply

Your email address will not be published. Required fields are marked *