Skip Navigation

Can't unmount automatically mounted CIFS share

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?

7 comments
  • The option you're looking for is users, not user.

    user makes it so that any user can mount, but only the same user can unmount. Meaning, since root is mounting it on boot, root has to be the one to unmount it, too.

    users allows any user to mount, and any user to unmount.

    Not sure what's on going with Pika. Who mounts the share shouldn't matter, as the folder permissions should be the same regardless.

    Do you have a uid option set?

7 comments