Mount error(13): Permission denied on Linux Kernel 3.8

When you run Kernel 3.8 and try to mount a Windows share you might end up with the “mount error(34): Permission denied” error even though your username and password are correct. The newer kernels don’t automatically support NTLM, so when you mount a share you have to specify it yourself.

Here’s an example of the problem:

$ sudo mount //192.168.1.1/MyShare /media/MyShare/ -o username=myusername,password=mypassword
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

You can solve it by adding “sec=ntlm” to your mount command, like this:

$ sudo mount //192.168.1.1/MyShare /media/MyShare/ -o username=myusername,password=mypassword,sec=ntlm

Now your share will mount without any issues.