! 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 !
Please, add to mount-plugin auto-filtering mount points, without user permiss...
Status:
RESOLVED: MOVED
Product:
Xfce4-mount-plugin
Component:
General

Comments

Description Ikonta 2013-06-10 14:22:46 CEST
Currently used xfce-extra/xfce4-mount-plugin-0.6.4 by default displays all mount pounts, listed in /etc/fstab.
But most of them (/usr, /var, /home) couldn't be mounted (and umounted) by odrinar, unprivilledged user.
So I need in rather long mountpoing-exclude list.

I find it very pretty, if mount-plugin, following Thunar, will display not all mount points, but only those of them, which containg 'user' option.
Also, please note bug #10154 (i.e. differ 'user' meaning user-allowed mount and 'user=username' options).
Comment 1 Fabian Nowak editbugs 2014-04-26 23:41:53 CEST
Please note that the idea of the mount plugin is also to give a grasp of the amount of space consumed and available on the devices.

I might consider adding an option to exclude non-(un)mountable devices. However, it is not as easy as checking the flag "user" because the root user might use the plugin and root can mostly (un)mount any device. 

So I would need more checks, such as for root who may do anything, and one for user, and perhaps anothre one for user=name.

As an alternative, one might consider an option "Show only user-(un)mountable devices", if that is acceptable, which would for both regular users and the root user hide the root folder / and others.
Comment 2 Ikonta 2014-04-28 14:42:07 CEST
(In reply to Fabian Nowak from comment #1)
> Please note that the idea of the mount plugin is also to give a grasp of the
> amount of space consumed and available on the devices.
> 
> I might consider adding an option to exclude non-(un)mountable devices.
> However, it is not as easy as checking the flag "user" because the root user
> might use the plugin and root can mostly (un)mount any device. 
I remember this feature of mount-plugin.
But even root couldn't easely umount system partitions mounted as /usr, /var.
For monitoring free/used size on such partitions I find well enough xfce-extra/xfce4-diskperf-plugin and/or xfce-extra/xfce4-fsguard-plugin.

> So I would need more checks, such as for root who may do anything, and one
> for user, and perhaps anothre one for user=name.
To my mind it could be done in two step check:
uid = 0 → show all mount points.
uid > 0 → show only user-mountable mountpoints.

> As an alternative, one might consider an option "Show only
> user-(un)mountable devices", if that is acceptable, which would for both
> regular users and the root user hide the root folder / and others.
Good idea!
Comment 3 Git Bot editbugs 2020-05-23 00:12:06 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/panel-plugins/xfce4-mount-plugin/-/issues/1.

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 #10169

Reported by:
Ikonta
Reported on: 2013-06-10
Last modified on: 2020-05-23

People

Assignee:
Fabian Nowak
CC List:
2 users

Version

Version:
unspecified

Attachments

Additional information