Hi! Got an issue I couldn’t figure out

When I use /etc/fstab to automount an SMB share using CIFS, I cannot unmount it without root privileges. If I mount it manually (as a non-privileged user), everything works just fine.

Also, an application I mount the share for (Pika Backup, based on borg) cannot access backups unless I unmount the share with root privileges and then mount it back manually.

A respective line in /etc/fstab is: //address/directory /mnt/backup cifs credentials=…,user,auto,iocharset=utf8 0 2

Highlighted user option to make it clear I didn’t forget it.

Any advice?

  • Allero@lemmy.todayOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    4 days ago

    Should work, though MentalEdge proposed a more elegant solution. All it took was setting uid in /etc/fstab.

    Maybe it could help you, too?

    Thanks anyway for your response!

    • who@feddit.org
      link
      fedilink
      English
      arrow-up
      2
      ·
      4 days ago

      I have a more complex setup than I described, making that approach a poor fit, but thanks for thinking of me. Glad you found a solution. :)