udev hide partition in nautilus for specific user/group

Posted by user64780 on Ask Ubuntu See other posts from Ask Ubuntu or by user64780
Published on 2012-10-29T16:35:36Z Indexed on 2012/10/29 17:23 UTC
Read the original article Hit count: 297

Filed under:
|
|
|

I'm trying to hide a partition form a specific group of users in Ubuntu 12.04.

I have created a new rule in /etc/udev/rules.d/99-hide-disk.rules with

KERNEL="sda3",ENV{UDISKS_PRESENTATION_HIDE}="1"

And this works for all users.

I tried KERNEL="sda3",ENV{UDISKS_PRESENTATION_HIDE}="1",GROUP="adm",MODE:="0700 but the partition is still hidden. That changes the group and permissions on the device rather than the rule.

How do I make the rule only apply to a particular group of users?

© Ask Ubuntu or respective owner

Related posts about permissions

Related posts about udev