Results 1 to 10 of 10

Thread: mount.cifs no longer permitted

  1. #1
    Join Date
    Nov 2008
    Location
    Rhenen, the Netherlands
    Beans
    27
    Distro
    Ubuntu 14.10 Utopic Unicorn

    mount.cifs no longer permitted

    I used to have some samba-shares in fstab with a credentials-file and such, so I could mount and unmount them without 'sudo' in cron-jobs, scripts etc...

    This worked for years until I upgraded to 10.4 (skipped 9.10)
    I now get:
    mount error(1): Operation not permitted

    (and a full partition on my server because all automatic backups were written at the mount-point in the directorystructure since the upgrade)

    When I 'sudo' the mount, it works, but hey, that was not what I wanted.

    Apart from this, upgrading to 10.04 LTS 64-bit worked like a charm.

    When I get this issue solved, I would mark 10.04 a
    Last edited by radiognome; May 11th, 2010 at 09:21 AM. Reason: Typo

  2. #2
    Join Date
    Nov 2007
    Beans
    74
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: mount.cifs no longer permitted

    try:
    sudo chmod +s `which mount.cifs`
    I am not sure whether this is the proper solution.
    EDIT: I just found a bug about this.. https://bugs.launchpad.net/ubuntu/+s...ba/+bug/563805
    Last edited by mehturt; May 12th, 2010 at 08:46 AM.

  3. #3
    Join Date
    Nov 2008
    Location
    Rhenen, the Netherlands
    Beans
    27
    Distro
    Ubuntu 14.10 Utopic Unicorn

    Re: mount.cifs no longer permitted

    Thanks mehturt,

    Silly I didn't find this launchpad bugentry myself. Probably used all 'just not the propper mix of searchwords' before giving up.

    Will try this as soon as I get back at the office on friday. Not having proper automated database-dumps starts getting itchy

  4. #4
    Join Date
    Oct 2007
    Beans
    10
    Distro
    Kubuntu

    Re: mount.cifs no longer permitted

    I had the same problem and I fixed it with these 2 commands
    Code:
    sudo chmod +s /sbin/mount.cifs
    sudo chmod +s /sbin/umount.cifs
    Works just like before now.

  5. #5
    Join Date
    Nov 2008
    Location
    Rhenen, the Netherlands
    Beans
    27
    Distro
    Ubuntu 14.10 Utopic Unicorn

    Re: mount.cifs no longer permitted

    Thanks GrokIt

    I used the same commands, and since then forgot about it.

    Funny... Don't know why this set-bit suddenly causes trouble sincd 10.04 and don't know why people are against it (see bug-report). Hope this gets settled proper and for all.

  6. #6
    Join Date
    Oct 2007
    Beans
    10
    Distro
    Kubuntu

    Re: mount.cifs no longer permitted

    Yeah it looks like a security problem from what I see. I hope it's just something that can be fixed. This will drive new users batty.
    Someone on the Kubuntu list is asking almost the same thing, except he has a gui problem. It's nice to able to spread the help.
    Last edited by GrokIt; May 19th, 2010 at 12:45 AM. Reason: incomplete thought

  7. #7
    Join Date
    Aug 2007
    Beans
    60

    Re: mount.cifs no longer permitted

    All was done on purpose to avoid security attacks.

    Instead of changing the "setuid bit"... use first "sudo visudo" and later "sudo".

    More information in:
    https://bugs.launchpad.net/ubuntu/+s...05/comments/10

  8. #8
    Join Date
    Mar 2009
    Location
    UK PLC
    Beans
    492
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: mount.cifs no longer permitted

    Quote Originally Posted by GrokIt View Post
    I had the same problem and I fixed it with these 2 commands
    Code:
    sudo chmod +s /sbin/mount.cifs
    sudo chmod +s /sbin/umount.cifs
    Works just like before now.
    Thanks for this! - It was driving me insane

    Using..

    sudo mount.cifs

    was leaving me unable to copy files into the mounted share! (unless I used the terminal and prefixed the mv command with sudo too.
    I have a major malfunction!

  9. #9
    Join Date
    Jul 2006
    Location
    USA
    Beans
    117
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: mount.cifs no longer permitted

    Not working for me:

    Couldn't open /etc/fstab for reading!
    Whoops, just realized this thread is really old... whoops.. cant delete it seems..

    sorry..

    ok i see it wont be fixed, ever. for good reasons.. oh well

    see: https://bugs.launchpad.net/ubuntu/+s...ba/+bug/563805
    Last edited by war59312; February 10th, 2013 at 05:59 PM.

  10. #10
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

Tags for this Thread

Bookmarks

Posting Permissions

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