3

mount.cifs: permission denied: no match for /media/cifs found in /etc/fstab

So this is a stupid problem with a stupid solution.

Trying to mount a share that’s listed in /etc/fstab. Options include “users” so my regular account should be able to mount it. The share point is live, the mount point is owned by me. But every time I try to mount it, I get:

mount.cifs: permission denied: no match for /media/cifs found in /etc/fstab

It’s because in my /etc/fstab, I had the mount point listed as “/media/cifs/” instead of “/media/cifs” (note the trailing slash).

Mount points should not include slashes!

 

 

3 Comments

  1. OH MY GOD!

    Thank you so much, just spend 2+ Hours trying to fix this, the weird part was mounting as root (eg. via sudo mount …) worked just fine, but as normal user I got the same permission denied error.

    Removed the trailing slash and BÄM, it works!

    THANK YOU!!!

  2. Wow, what a stupid bug. Seems to be the users option which does a too primitive string comparison.

    Thank you.

Leave a Reply