Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] Allow mount not for one user,but for a group #1279

Open
3036662 opened this issue May 13, 2024 · 2 comments
Open

[feature request] Allow mount not for one user,but for a group #1279

3036662 opened this issue May 13, 2024 · 2 comments

Comments

@3036662
Copy link

3036662 commented May 13, 2024

Normally, run/media/$user is created, and ACL is set for a user.
Do you consider the possibility of creating an ACL for $group or user/group?
It would be nice to have a way to mount one USB drive, not for all users or one user, but for a group( for example /run/media/$GROUP) by calling some dbus method MountOnGroupBehalf(group).

@tbzatek
Copy link
Member

tbzatek commented May 15, 2024

I don't have precise answer for ACLs, but you may try experimenting with different mount options like umask, dmask, fmask, mode, dmode and gid=. Also, there are number of flags that can be set via udev rules on a block device, such as
UDISKS_FILESYSTEM_SHARED.

Alternatively, you may try to put a record in /etc/fstab with your own mount options.

@3036662
Copy link
Author

3036662 commented May 15, 2024

The point is that Udisks allow you to mount devices either in /run/media/$USER + acl or in /media (UDISKS_FILESYSTEM_SHARED). In order to allow a group of users to use the device, you need an ACL for the group/user. Mounting options are not quite suitable for this task since not all file systems support such options. Using Fstab for USB sticks is, in my opinion, not the right approach. To solve this problem, we use a third-party daemon (libacl and glibc-mount calls). I would like to keep the whole mounting mechanism using udisks,to keep things consistent.
I wanted to ask if there is an opportunity to consider expanding the functionality in this direction. We can help with the development, if this area is at all interesting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants