Normal users cannot mount cifs shares, mount.cifs doesn't have the suid flag. Reproducible: Always Steps to Reproduce: 1. Add a fstab entry to mount a cifs share with the users option. 2. Try to mount the share with an user. Actual Results: The mount command showed: mount error(1): Operation not permitted Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) Setting the suid flag on mount.cifs solves everything.
I clearly remember making mount.cifs suid after each samba upgrade. I think it is not meant to be suid by default because of associated risks (not sure of the exact risks though ;)). It would be convenient though to add a USE flag that makes mount.cifs suid automatically.
Is there any resolution to this bug ? I just happened to hit this bug today, although I had had no problems before ...
Now if you set suid on mount.cifs, it will refuse to work saying: "This mount.cifs program has been built with the ability to run as a setuid root program disabled. mount.cifs has not been audited for security holes. Therefore the Samba team does not recommend installing it as a setuid root program" Of course, user mounts are exactly what most desktop users would like to do with samba-client, right? We need a use flag that installs the patch that's been bouncing around the gentoo forums, or something like it. Please?
*** This bug has been marked as a duplicate of bug 315445 ***