! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Unmount operation not allowed for shares mounted with 'sudo mount'
Status:
RESOLVED: MOVED
Priority:
Very Low
Severity:
enhancement

Comments

Description scootergrisen 2019-06-01 21:31:03 CEST
If i mount a share i can see it in Thunar in the left pane.
But if i try to unmount i get a dialog saying that the operation is not allowed.
I can unmount from the terminal using sudo but not without sudo.
Also i cant mount without sudo.

So i guess maybe the system should ask for password to unmount.
Maybe using polkit which i think other software might use.
Comment 1 Clark 2019-06-05 19:56:05 CEST
Use Gigolo?

One issue is there is not a single way the mount is done. Likely you did not use thunar to mount the share? So why use it to dismount.
Even Gigolo will not unmount a device or share not mounted with Gigolo.

If Thunar gains the ability to seek and mount the share, we should then expect it to unmount the share.
Comment 2 scootergrisen 2019-06-11 14:47:47 CEST
In VirtualBox mount with:
sudo mount -t vboxsf share /media/sf_share

Note i am not allowed to use -t without sudo.

Then open Thunar.
Right click the share in the left pane and try to unmount it.
Comment 3 scootergrisen 2019-06-11 22:38:48 CEST
I get almost identical dialog in Gigolo.
That umount failed. Operation not allowed.
Comment 4 Theo Linkspfeifer editbugs 2019-06-11 23:24:56 CEST
Run "pkexec thunar" and unmount the mounted filesystem.
Comment 5 scootergrisen 2019-06-11 23:55:46 CEST
I can unmount and mount with "pkexec thunar".
But i suppose users are not meant to run as root.

I also tried "pkexec gigolo" but that wont start (cannot open display:).

I also tried the mount plugin for the panel and that dont have the mountpoint i see in Thunar.

I dont know if its the uncommon why i share a folder in VirtualBox and that maybe dont work well but its seems not so easy to mount/unmount stuff in Xfce and Linux distributions in general.

Can the users even mount/umount stuff without using a terminal and typing commands and passords each time?

If "pkexec thunar" can ask me for password cant Thunar also ask me for password when i want to mount/unmount that required passwords instead of just failing because i am not allowed because im not root?
Comment 6 Clark 2019-06-15 18:11:55 CEST
My advice is use the same method to mount and unmount. So if you use the terminal to mount, use it to unmount.

Thunar does not mount for me, so unmount is not a choice. 

Thunar as root does not show unmounted devices available for mount, so no mount or unmount options.

For network, I use gigolo for both operations, thunar as user shows the mount and does not as root.

This is really a feature request, not a bug. A summary is to include non-usb-device and network share control? I think the hints of this functionality are remnants from optical media and usb devices, 2 more categories to add to the 3 below.

For convenience, you can enable the user to complete the commands passwordless, and create luancher buttons to mount and dismount. I do this for guestmount actions and looping a R-O copy of a running vm. This is similar to your case maybe?

For devices, removables and docks, not usb, I use verve instead of a terminal, sudo enabled for no password dialog, and call by-label.

For network mounts I use gigolo.
Comment 7 Git Bot editbugs 2020-05-26 23:43:45 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/thunar/-/issues/248.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #15528

Reported by:
scootergrisen
Reported on: 2019-06-01
Last modified on: 2020-05-26

People

Assignee:
Xfce Bug Triage
CC List:
3 users

Version

Attachments

Additional information