Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 283615 - net-fs/samba-server-3.3.7 mount.cifs doesn't work as normal user
Summary: net-fs/samba-server-3.3.7 mount.cifs doesn't work as normal user
Status: RESOLVED DUPLICATE of bug 315445
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-03 21:28 UTC by erzapito
Modified: 2011-01-28 15:33 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description erzapito 2009-09-03 21:28:56 UTC
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.
Comment 1 Manolis Stamatogiannakis 2009-09-11 18:03:43 UTC
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.
Comment 2 Tolga Dalman 2010-04-21 07:18:44 UTC
Is there any resolution to this bug ? I just happened to hit this bug today, although I had had no problems before ...
Comment 3 jonathan e. Snow 2010-08-20 15:50:16 UTC
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?
Comment 4 Víctor Ostorga (RETIRED) gentoo-dev 2011-01-28 15:33:58 UTC

*** This bug has been marked as a duplicate of bug 315445 ***