Thanks for your reply.
I thought the rw
option was ignored by mount.cifs
? Switched my file_mode
and dir_mode
options to 0777
. Seems to have worked.
I would normally avoid theuse of white space in the path, but I can’t on this occasion as it’s my employer’s share. I’ve tried the following but I still can’t get it to mount:
[Unit]
Description=Project share
After=network.target
[Mount]
What=systemd-escape -p --suffix=path "//wincluster.place.ac.uk/f/share name with spaces"
Where=/data/tux/projdir
Options=_netdev,nofail,rw,credentials=/home/tux/.smbcredentials,sec=ntlmv2,file_mode=0777,dir_mode=0777,iocharset=utf8,vers=3.0
Type=cifs
TimeoutSec=30
[Install]
WantedBy=multi-user.target
journalctl -xe
shows a bad UNC
error.