CIFS: mount error(13): Permission denied

You’ve just updated your Raspberry Pi (or whatever Linux) and you’re noticing your CIFS (smb) mounts aren’t getting auto mounted anymore. You curse and start noticing this error:

# mount -t cifs //192.168.1.100/public -o username=public,password=public sam/
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

The solution is to add after -o username=X,password=Y the following: sec=ntlm; thus it becomes -o username=X,password=Y,sec=ntlm.

You can do the same in fstab:

//192.168.1.100/public /mnt/sam/ cifs domain=TIETE,username=public,password=public,sec=ntlm 0 0

No idea why it’s suddenly required, but whatevs.


Posted by

in

, ,

Comments

2 responses to “CIFS: mount error(13): Permission denied”

  1. N_O_N_A avatar
    N_O_N_A

    ntlm used to be the default which is why you never had to specify it. Things moved on however, so the default is now ntlmssp. If you are accessing something which doesn’t use ntlmssp you have to override the new default with the old one.

    Most NAS devices use older technology so they often require ntlm. If you access an OSX or Linux samba share it requires ntlmssp – so before you had to specify that in the mount options but now you don’t.

  2. Yeri Tiete avatar

    Cheers for clearing that up !

Leave a Reply…