I am trying to mount a network drive with mount -a and have added the string below to /etc/fstab. When running the command mount -a it shows the error message below.

//server/folder /mnt/folder cifs username=domain\user,password=password,iocharset=utf8,sec=ntlm,vers=1.0 0 0

error message:

mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

This only occur on Raspbian Stretch from 2018-06-27 and onlder Raspbian versions such as Wheezy works fine. I have earlier found that adding "vers=1.0" solves the problem on newer versions of Raspbian, but it does not. Also, the string is taken directly from another device and it is possible to mount the drive on that device.

Any ideas?

  • You could try //server/folder /mnt/folder cifs users,noauto,credentials=/home/user/.credentials,uid=user,gid=group 0 0 (replace "user" and "group"). Create "/home/user/.credentials" with two lines: username=user password=secret. And run chmod 600 /home/user/.credentials. – Fabian Nov 8 '18 at 21:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.