[Pkg-utopia-maintainers] Bug#585463: udev: chown hotplugged mass storage device to current user

Jonathan Nieder jrnieder at gmail.com
Thu Jun 10 18:15:39 UTC 2010


Marco d'Itri wrote:
> On Jun 10, Jonathan Nieder <jrnieder at gmail.com> wrote:

>> To allow people at a multiuser installation to write Debian
>> installation media to take home with them, it would be nice to able to
>> automatically grant the current user access to any newly attached
>> removable block devices (think: USB key).
>
> getfacl /dev/cdrom
> and get consolekit working if it is not.

By the way: /lib/udev/rules.d/70-acl.rules contains

	# optical drives
	SUBSYSTEM=="block", ENV{ID_CDROM}=="1", TAG+="udev-acl"

but nothing like the following.

	# removable disks
	SUBSYSTEM=="block", ATTRS{removable}=="1", DRIVERS!="aacraid", TAG+="udev-acl"
	SUBSYSTEM=="block", SUBSYSTEMS=="usb|ieee1394|mmc|pcmcia", TAG+="udev-acl"

I am not sure what consolekit could do.

Jonathan





More information about the Pkg-utopia-maintainers mailing list