hi hans,
i'm just curious ... on gentoo the permissions for the /dev/input/eventX devices are set to 600, so they are not available for the ordinary user ... is this a specific bug/feature of gentoo? did you experience anything like this on other distributions?
tim
-- tim@klingt.org ICQ: 96771783 http://www.mokabar.tk
You can play a shoestring if you're sincere John Coltrane
Hi tim, list,
Debian is :
crw-rw---- 1 root root 13, 64 2006-12-04 20:02 event0 crw-rw---- 1 root root 13, 65 2006-12-04 20:02 event1 crw-rw---- 1 root root 13, 66 2006-12-04 20:02 event2
I remember when I used [hid] a lot I had to :
# chmod a+r /dev/event*
before being able to read anything from it.
++
Jé
Tim Blechmann a écrit :
hi hans,
i'm just curious ... on gentoo the permissions for the /dev/input/eventX devices are set to 600, so they are not available for the ordinary user ... is this a specific bug/feature of gentoo? did you experience anything like this on other distributions?
tim
-- tim@klingt.org ICQ: 96771783 http://www.mokabar.tk
You can play a shoestring if you're sincere John Coltrane
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Wow, Gentoo is really uptight with the perms! I have the same as below:
root@debian-testing-i386:~ > ls -l /dev/input/event? crw-rw---- 1 root root 13, 64 Sep 26 13:11 /dev/input/event0 crw-rw---- 1 root root 13, 65 Sep 26 13:11 /dev/input/event1
Basically, you can either change the perms of the devices, or add
your user to the "root" group.
.hc
On Dec 4, 2006, at 4:55 PM, Jerome Tuncer wrote:
Hi tim, list,
Debian is :
crw-rw---- 1 root root 13, 64 2006-12-04 20:02 event0 crw-rw---- 1 root root 13, 65 2006-12-04 20:02 event1 crw-rw---- 1 root root 13, 66 2006-12-04 20:02 event2
I remember when I used [hid] a lot I had to :
# chmod a+r /dev/event*
before being able to read anything from it.
++
Jé
Tim Blechmann a écrit :
hi hans, i'm just curious ... on gentoo the permissions for the /dev/input/ eventX devices are set to 600, so they are not available for the ordinary user ... is this a specific bug/feature of gentoo? did you
experience anything like this on other distributions? tim -- tim@klingt.org ICQ: 96771783 http://www.mokabar.tk You can play a shoestring if you're sincere John Coltrane
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
I have the audacity to believe that peoples everywhere can have three
meals a day for their bodies, education and culture for their minds,
and dignity, equality and freedom for their spirits. - Martin
Luther King, Jr.
Hans-Christoph Steiner wrote:
Basically, you can either change the perms of the devices, or add your user to the "root" group.
do i read correctly that you are proposing to add your user to the "root" group?
i would rather change the group of /dev/input/event* via /etc/udev/rules.d/ (and add myself to this group).
or run pd as root. or run w98
mf.adr IOhannes
On Dec 5, 2006, at 3:22 AM, IOhannes m zmoelnig wrote:
Hans-Christoph Steiner wrote:
Basically, you can either change the perms of the devices, or add
your user to the "root" group.do i read correctly that you are proposing to add your user to the "root" group?
Yes, the root group doesn't really give you much additional access.
Mostly its read permissions on some logs and r/w on the input
devices, /dev/etc, and /dev/apm_bios, AFAIK.
i would rather change the group of /dev/input/event* via /etc/udev/ rules.d/ (and add myself to this group).
If you have udev running, that does sound like a better option.
or run pd as root.
That is far, far worse than the root group. That gives you complete
r/w access to everything. Quite a bit different than the root
group. I definitely do not recommend that at all.
or run w98
You must be joking =D
.hc
If you are not part of the solution, you are part of the problem.
On Tue, 2006-12-05 at 09:22 +0100, IOhannes m zmoelnig wrote:
Hans-Christoph Steiner wrote:
Basically, you can either change the perms of the devices, or add your user to the "root" group.
do i read correctly that you are proposing to add your user to the "root" group?
i would rather change the group of /dev/input/event* via /etc/udev/rules.d/ (and add myself to this group).
hi IOhannes, hi list
this sounds so easy, but it is not, at least for me. although this might be off-topic, i'd like to ask the list, how to do this step-by-step, since everyone, who uses [hid] on a linux-box, is confronted with that question. the ugly solution i am using for now, is to change the permissions manually each time i boot the computer and want to use a joystick.
thanks for any suggestions
roman
___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de
Roman Haefeli wrote:
this sounds so easy, but it is not, at least for me. although this might be off-topic, i'd like to ask the list, how to do this step-by-step, since everyone, who uses [hid] on a linux-box, is confronted with that question. the ugly solution i am using for now, is to change the permissions manually each time i boot the computer and want to use a joystick.
adding this line to /etc/udev/permissions.rules (on a debian system) KERNEL=="event[0-9]*", MODE="0664", GROUP="games"
should give you rw-rw-r permissions (and the group will be set to "games") choose your own group and mode.
this is something you i have guessed by just looking at the /etc/udev/ directory and the contents of some files therein. i do not doubt that there is lot of information available in the net.
mfgadr IOhannes
hi IOhannes
On Wed, 2006-12-06 at 15:01 +0100, IOhannes m zmoelnig wrote:
Roman Haefeli wrote:
this sounds so easy, but it is not, at least for me. although this might be off-topic, i'd like to ask the list, how to do this step-by-step, since everyone, who uses [hid] on a linux-box, is confronted with that question. the ugly solution i am using for now, is to change the permissions manually each time i boot the computer and want to use a joystick.
adding this line to /etc/udev/permissions.rules (on a debian system) KERNEL=="event[0-9]*", MODE="0664", GROUP="games"
thank you very much for providing this information.
should give you rw-rw-r permissions (and the group will be set to "games") choose your own group and mode.
this is something you i have guessed by just looking at the /etc/udev/ directory and the contents of some files therein. i do not doubt that there is lot of information available in the net.
yes, there is, maybe to much and too confusing for someone like me.... since this wasn't asked before in the list and at the same time it concerns so many people, i still believe it was a good choice to ask the list. why should so many people find that out themselves and possibly spend hours on that ( i admit i sometimes/often spend hours on rather *stupid* things like that), when this could be stated once forever in a thread containing the keywords 'hid' 'linux' 'event' 'permission' 'udev' in its subject?
roman
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
Roman Haefeli wrote:
On Tue, 2006-12-05 at 09:22 +0100, IOhannes m zmoelnig wrote:
Hans-Christoph Steiner wrote:
Basically, you can either change the perms of the devices, or add your user to the "root" group.
do i read correctly that you are proposing to add your user to the "root" group?
i would rather change the group of /dev/input/event* via /etc/udev/rules.d/ (and add myself to this group).
hi IOhannes, hi list
this sounds so easy, but it is not, at least for me. although this might be off-topic, i'd like to ask the list, how to do this step-by-step, since everyone, who uses [hid] on a linux-box, is confronted with that question. the ugly solution i am using for now, is to change the permissions manually each time i boot the computer and want to use a joystick.
thanks for any suggestions
roman
In my opinion, this is the cleanest way to do it:
edit /etc/group and find the line that starts with 'audio'. Add your account after the colons. For instance In my '/etc/group' have:
audio::17:cesarem
The group number could be different.
Find the line that starts with ' "KERNEL="event*", '. Change the permissions as "0660" and add the 'audio' group.
Here I have:
KERNEL="event*", NAME="input/%k", MODE="0660", GROUP="audio"
Ciao,
c.
___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Cesare Marilungo wrote:
- First add your account to the 'audio' group:
edit /etc/group and find the line that starts with 'audio'. Add your account after the colons. For instance In my '/etc/group' have:
better use "adduser <user> <group>" (e.g. "adduser cesarem audio"). this way you have less chance to fuck up your /etc/group file.
if you really MUST edit /etc/group, /etc/passwd and their shadowy friends by hand, use specialised tools, such as "vipw [-s]" and "vigr [-s]".
mfga.dr IOhannes
IOhannes m zmoelnig wrote:
Cesare Marilungo wrote:
- First add your account to the 'audio' group:
edit /etc/group and find the line that starts with 'audio'. Add your account after the colons. For instance In my '/etc/group' have:
better use "adduser <user> <group>" (e.g. "adduser cesarem audio"). this way you have less chance to fuck up your /etc/group file.
Yes, you're right.
But /etc/group is just a plain text without encrypted data, and editing it with vi or whatever gives the very same result.
It's easier to fuck up udev.rules, though.
c.
if you really MUST edit /etc/group, /etc/passwd and their shadowy friends by hand, use specialised tools, such as "vipw [-s]" and "vigr [-s]".
mfga.dr IOhannes