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?
Have you considered replacing
auto
withnoauto
, and creating a .desktop file in ~/.config/autostart/ to run the mount command when you log in?I do this, and it allows me to unmount (and mount again later) as myself rather than as root.
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!
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. :)