Bug 4614 - CIFS mounting/unmounting broken on RHEL6 (and probably other distributions)
Summary: CIFS mounting/unmounting broken on RHEL6 (and probably other distributions)
Status: CLOSED FIXED
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Misc (show other bugs)
Version: 4.0.0
Hardware: PC Unknown
: P2 Normal
Target Milestone: 4.13.0
Assignee: Pierre Ossman
URL:
Keywords: nikle_tester, prosaic
: 6107 (view as bug list)
Depends on:
Blocks: 4613
  Show dependency treegraph
 
Reported: 2013-04-23 13:07 CEST by Aaron Sowry
Modified: 2021-06-18 11:20 CEST (History)
4 users (show)

See Also:
Acceptance Criteria:


Attachments

Description Aaron Sowry cendio 2013-04-23 13:07:20 CEST
The tool "smbumount" required by tl-umount-all-cifs does not seem to exist on RHEL6 (and perhaps other distributions). This makes tl-umount-all-cifs useless on these platforms.

Also, tl-mount-cifs requires either smbmount or mount.cifs - smbmount is not provided on RHEL6 (and perhaps other distributions), and mount.cifs is no longer shipping with a sticky bit. This means that tl-mount-cifs is probably useless on these platforms too.

It looks like "mount" is actually shipping with a sticky bit, although I'm not sure this helps us. We should investigate some possible solutions to this.
Comment 1 Peter Åstrand cendio 2013-10-02 14:50:02 CEST
It seems to be even worse. Apparently, with newer versions of mount.cifs, ordinary users cannot mount even if the binary is setuid root, unless there's a hardcoded path in /etc/fstab. See https://bugs.launchpad.net/ubuntu/+source/cifs-utils/+bug/657900 .
Comment 3 Peter Åstrand cendio 2014-02-10 15:06:01 CET
One solution could be http://repo.or.cz/w/usmb.git . Unfortunately it requires options to go into a config file .usmb.conf right now.
Comment 5 Peter Åstrand cendio 2016-12-13 10:29:26 CET
One solution could be to switch to a FUSE solution.
Comment 7 Peter Åstrand cendio 2017-03-28 09:55:45 CEST
(In reply to comment #5)
> One solution could be to switch to a FUSE solution.

This is also recommended by the cifs-utils release notes:

cifs-utils (2:4.0-1) unstable; urgency=low

  * As of this version, the mount.cifs binary is no longer setuid due to
    upstream concerns about the audit status of this code. As a consequence,
    users will no longer be able to run mount.cifs directly to mount shares
    unless mount points have been individually configured in /etc/fstab with
    the "user" mount option.

    Sites that require their users to retain the ability to mount arbitrary
    CIFS shares without system-level configuration may want to consider using
    the fusesmb package instead.

 -- Steve Langasek <email address hidden> Sun, 28 Feb 2010 16:07:14 -0800
Comment 8 Pierre Ossman cendio 2018-09-25 14:02:14 CEST
The fact that it has been broken for so long suggests that it isn't really used. So we should consider just removing this.
Comment 9 Pierre Ossman cendio 2018-09-25 14:02:56 CEST
*** Bug 6107 has been marked as a duplicate of this bug. ***
Comment 12 Pierre Ossman cendio 2021-06-17 13:24:41 CEST
Everything regarding this tool should now be removed.

Not adding any release notes given that this hasn't actually worked in a decade. So no users should be affected by this change.
Comment 13 Niko Lehto cendio 2021-06-18 11:20:05 CEST
This seems to be completely removed now!

Note You need to log in before you can comment on or make changes to this bug.