USB device permissions

Peter Clark mla at forrussia.org
Tue Mar 21 04:33:23 UTC 2006


On Monday 20 March 2006 22:26, Derek Broughton wrote:
> Sorry, I guess I misled you.  There's no reason it should necessarily say
> "sd[a-z]" at all.  I simply meant that none of those rules applied to sda
> devices.  I would expect that you're getting defaults - accessible to owner
> only, where owner=root.
    No, actually the owner is whoever mounts the device.

> In my case (on a current dapper system):
>
> derek at othello:~$ grep sd /etc/udev/*/*
> /etc/udev/permissions.d/udev.permissions:isdn[0-9]*:root:dialout:0660
> /etc/udev/permissions.d/udev.permissions:isdnctrl[0-9]*:root:dialout:0660
> /etc/udev/permissions.d/udev.permissions:sd[a-z]:root:disk:0660
> /etc/udev/permissions.d/udev.permissions:sd[a-z][0-9]*:root:disk:0660
> ...
>
> So if you _have_ a permissions.d directory (not a file - I don't think
> breezy did have this), you just need to make sure that you have
>  sd[a-z]:root:disk:0660
> in there somewhere.
>
> Otherwise make a rule like those above, but for sda or sd[a-z], you don't
> need the NAME parameter, set MODE="0660" and GROUP="disk".
    I'm using Breezy, and the only relevant result of `grep sd /etc/udev/*/*` 
is in /etc/udev/rules.d/020_permissions.rules:

BUS=="scsi", KERNEL=="sd[a-z]*", PROGRAM="/etc/udev/scripts/removable.sh %k 
'usb ieee1394'", RESULT="1", MODE="0640", GROUP="plugdev"

    However, I doubt that modifying this would make a difference, since the 
device, when mounted, is 0700 user.who.mounted user.who.mounted.
    :Peter    




More information about the kubuntu-users mailing list