Results 1 to 3 of 3

Thread: Mounting a cifs share as normal user in OpenSuse 11.4

  1. #1

    Default Mounting a cifs share as normal user in OpenSuse 11.4

    Q: How can I allow my users to mount a cifs share without an entry in fstab in OpenSuse 11.4?

    I have an answer myself. Until OpenSuse 11.2 I could mount my samba shares by making mount.cifs and umount.cifs setuid root. Today I installed OpenSuse 11.4. Unfortunately mount.cifs isn't anymore allowed to be setuid due to security concerns. Security is not an issue in my case, so I copied the mount.cifs and umount.cifs from 11.2 to make it work again:

    1. Download cifs-mount-3.4.2-1.1.3.1.x86_64.rpm from this repository (I use 64 bit):
    "http://download.opensuse.org/distribution/11.2/repo/oss/suse/x86_64/"
    2. Extract the files mount.cifs and umount.cifs from the rpm and copy them to /sbin
    3. Make them setuid root:
    Code:
    linux-y5qw:~ # chmod u+s /sbin/mount.cifs
    linux-y5qw:~ # chmod u+s /sbin/umount.cifs
    4. Mount your cifs shares as a normal user:
    Code:
    martin@linux-y5qw:~> /sbin/mount.cifs //192.168.2.2/data /home/martin/data/ -ousername=martin
    Password:

  2. #2

    Default Re: Mounting a cifs share as normal user in OpenSuse 11.4

    if you don't have root access, user interfaces like GNOME (gvfs) and KDE (kio_slaves) provide VFS interfaces that allow user mounting.

  3. #3

    Default Re: Mounting a cifs share as normal user in OpenSuse 11.4

    Quote Originally Posted by redagadir View Post
    if you don't have root access, user interfaces like GNOME (gvfs) and KDE (kio_slaves) provide VFS interfaces that allow user mounting.
    They don't always work the same as a true mount. KIO slaves uses something like smb:// and not everything knows how to use that.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •