Gleaning from the Arch Linux Wiki entry, I have what I think is the minimal setup of accessing a Windows shared drive via SMB from my Arch Linux 4.20.6:
sudo pacman -Sy samba
sudo echo "logging = systemd" >> /etc/samba/smb.confsince the
smbservice needs this config file, otherwise it'll crash with the error:
Job for smb.service failed because the control process exited with error code. See "systemctl status smb.service" and "journalctl -xe" for details.
sudo systemctl start smb
Assuming that the remote Windows machine is at
172.16.17.52, I'm able to list the share names with
smbclient -L 172.16.17.52 -U MyUserName%MyPassword -W OurWindowsDomain
Among those is a service of type "Disk" with share name
OurRemoteDirectory that I'd like to access, i.e., transfer files from and to it.
Hoping to be able to access
OurRemoteDirectory on the shared drive, I issued
smbclient 172.16.17.52/OurRemoteDirectory -U MyUserName%MyPassword -W OurWindowsDomain
But that produced this error message:
Unable to initialize messaging context 172.16.17.52: Not enough '\' characters in service
How can I fix this error and access
OurRemoteDirectory on the shared drive?