[PlanetCCRMA] device permissions

Nathaniel Virgo nathanielvirgo@gmail.com
Fri Dec 16 13:44:01 2005


------=_Part_7263_15790107.1134769418192
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Thanks, that did it.  For future reference, I added the lines

<event>=3D/dev/input/event*
<console>  0600 <event>      0666 root

to /etc/security/console.perms.d/50-default.perms so now all users are
allowed to read and write event devices.

On 16/12/05, Fernando Lopez-Lezcano <nando@ccrma.stanford.edu> wrote:
>
> On Fri, 2005-12-16 at 13:03 +0000, Nathaniel Virgo wrote:
> > Hi,
> >
> > I'm using Fedora core 4 and am using a joystick to interface with
> > SuperCollider.  The problem is that /dev/input/event3 - the device
> > corresponding to the joystick - is always created with permissions
> > such that only root can read from it.  (for some reason SuperCollider
> > doesn't like /dev/input/js0, which does have the correct permissions)
> > What is the correct way to change the default permissions of a device?
> > I currently have a boot script that changes them but if I unplug the
> > joystick and plug it in again the device gets re-created with the
> > wrong permissions again.
>
> The files to tweak are in /etc/security/console.perms.d/, you can either
> change what's there or add a file with what you need. See "man
> console.perms" for more details.
>
> -- Fernando
>
>
>

------=_Part_7263_15790107.1134769418192
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

<br>Thanks, that did it.&nbsp; For future reference, I added the lines<br><=
br>&lt;event&gt;=3D/dev/input/event*<br>&lt;console&gt;&nbsp; 0600 &lt;even=
t&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0666 root<br><br><div><span class=3D"gm=
ail_quote">to /etc/security/console.perms.d/50-
default.perms so now all users are allowed to read and write event devices.=
<br><br>On 16/12/05, <b class=3D"gmail_sendername">Fernando Lopez-Lezcano</=
b> &lt;<a href=3D"mailto:nando@ccrma.stanford.edu">nando@ccrma.stanford.edu
</a>&gt; wrote:</span><blockquote class=3D"gmail_quote" style=3D"border-lef=
t: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1=
ex;">On Fri, 2005-12-16 at 13:03 +0000, Nathaniel Virgo wrote:<br>&gt; Hi,<=
br>
&gt;<br>&gt; I'm using Fedora core 4 and am using a joystick to interface w=
ith<br>&gt; SuperCollider.&nbsp;&nbsp;The problem is that /dev/input/event3=
 - the device<br>&gt; corresponding to the joystick - is always created wit=
h permissions
<br>&gt; such that only root can read from it.&nbsp;&nbsp;(for some reason =
SuperCollider<br>&gt; doesn't like /dev/input/js0, which does have the corr=
ect permissions)<br>&gt; What is the correct way to change the default perm=
issions of a device?
<br>&gt; I currently have a boot script that changes them but if I unplug t=
he<br>&gt; joystick and plug it in again the device gets re-created with th=
e<br>&gt; wrong permissions again.<br><br>The files to tweak are in /etc/se=
curity/console.perms.d/, you can either
<br>change what's there or add a file with what you need. See &quot;man<br>=
console.perms&quot; for more details.<br><br>-- Fernando<br><br><br></block=
quote></div><br>

------=_Part_7263_15790107.1134769418192--