Link to home
Start Free TrialLog in
Avatar of Tom Strickland
Tom Strickland

asked on

SMB Network Scanning to Mac Breaks Each Day....Help!

I have a Sharp MX-C300W all-in-one that has the ability to scan to network drives.

The network destination I have set up is on a newer "trashcan" mac running OSX 10.13.4. I have a working user name and password for the share, and am using the server's static IP in the network path.
Scan-Destination.tiff

After setting it all up, it works....that is until the next day I come in to work. Attempting to scan to this same destination after some time has passed throws a CE-04 error code, which apparently means "FTP SERVER ACCOUNT NME OR AUTHENTICATION PASSWORD INPUT ERROR" according to the error code index

The way I solve this every single time is simply by disabling and then instantly re-enabling the SMB sharing  on the Mac. This fixes it every time, until enough time has passed and it breaks again.

Any ideas why this is happening? It is so annoying to have to do this every day. If it's a bug in SMB running on the mac, does anyone know a way I can program the mac to automatically turn SMB sharing on and off automatically each day? Would love some help from the experts!
Avatar of Wayne88
Wayne88
Flag of Canada image

A lot of these scanners still uses the old SMBv1 protocol.  I wonder if the MAC firewall will block SMBv1 communication some time after the service is restarted and that's why it work for some time after the service is restarted.  That's where I would start looking.

https://apple.stackexchange.com/questions/240106/how-can-i-switch-back-the-smb-file-service-to-smb1
Avatar of Tom Strickland
Tom Strickland

ASKER

I think you are on to something, however I really don't want to have to force old software onto the newer mac if I can help it. A simple Applescript running automatically every few hours to restart the service would solve the problem, I just need help with the syntax....

I found this on another site but it's not working..

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.smbd.plist
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.smbd.plist
sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server.plist EnabledServices -array disk
Maybe you need a pause between disabling and enabling it.

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.smbd.plist
sleep 10
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.smbd.plist
sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server.plist EnabledServices -array disk 

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Tom Strickland
Tom Strickland

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial