Bug#788662: Logged-in user no longer granted permission to removable disks

Michael Biebl biebl at debian.org
Mon Jun 15 11:36:45 BST 2015


Am 15.06.2015 um 07:34 schrieb Martin Pitt:
> Hey Josh,
> 
> Josh Triplett [2015-06-13 16:23 -0700]:
>> I plugged in a removable USB disk, and its devices showed up as root:disk 0660,
>> with no ACLs.  Normally, I'd expect removable USB disks to grant
>> read/write permission to the logged-in user.
>> ~$ ls -l /dev/sdb*
>> brw-rw---- 1 root disk 8, 16 Jun 13 16:17 /dev/sdb
>> brw-rw---- 1 root disk 8, 17 Jun 13 16:17 /dev/sdb1
> 
> That's expected. As Michael already said, we never explicitly granted
> user access to device nodes. Maybe in the past some devices got that
> through specific group membership, or you had some custom udev rules
> to do that; but throughout the history of pmount, hal, consolekit,
> udev etc. in Debian the device nodes themselves weren't user
> accessible in general. The main exception there that I remember is
> Fedora's/Red Hat's ancient console_helper (or something similar) which
> actually changed the device nodes themselves. But that was some decade
> ago already..

I checked wheezy, and it had the following rules:
91-permissions: SUBSYSTEM=="block", ATTRS{removable}=="1", GROUP="floppy"
91-permissions: SUBSYSTEM=="block", SUBSYSTEMS=="usb|ieee1394|mmc|pcmcia", GROUP="floppy"

See also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=751892

Maybe we should merge those two bug reports?



-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20150615/8ecd0a85/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list