11
5
After installing Ubuntu 12.04, I'm trying to mount a samba share from Windows under Linux, using a scripted command that's always worked, and the server hasn't changed.
The error is as follows:
$ mount -t cifs //<host>/<share> /media/<share> -o username=<user>,password=<pass>
mount: block device //<host>/<share> is write-protected, mounting read-only
mount: cannot mount block device //<host>/<share> read-only
$
I've read a lot of discussions about permissions, but unfortunately, that wasn't the issue. I'm submitting my own answer below for reference, hope this helps someone else.
Also adding the following (depending on your environment) to your fstab mount point.
sec=ntlmssp OR sec=ntlm OR sec=ntlmv2
– Mark McLean – 2014-09-29T14:28:50.663