The wrong file name
error is misleading. The issue is in Samba server setup.
- Edit Samba server configuration:
sudo nano /etc/samba/smb.conf
- In the
[global]
section, add these lines:
server min protocol = NT1
ntlm auth = ntlmv1-permitted
- Restart Samba for changes to take effect:
sudo systemctl restart smbd.service
While trying to fix this issue I spent considerable time checking why the file name was wrong. Once I was sure there was nothing wrong with the file name, I thought there could be something with the Samba protocols being used, because the MFP device has not been receiving software updates for years. In Samba's online documentation I found a way to force the server to accept older protocols (server min protocol
). To use SMB1 protocol you need the setting NT1
. The device still could not write the scan, this time the error was: file access denied
. Misleading again - there was nothing wrong with file permissions. Digging into Samba's online documentation further, I found how authentication protocols evolved, added the ntlm auth
line and that was it.
The SMB1 protocol is insecure, but you should get away with it as long as your Samba is accessible only in local network or equivalent like VPN. If you absolutely must open Samba server to the Internet, here's sound advice how to do it (finding this response earlier would have saved me time, but the question was asked differently).