Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 2849

System and Network configuration • Re: evtest behave differently on two pc's

$
0
0
Hello,
When I look at the properties of the file evtest I see that the owner is 'root' and the group is 'root'.
I assume you mean the executable /usr/bin/evtest
The permissions of this file should be rwxr-xr-x (755) which means executable by anyone.
But members of the group 'input' also can execute the command without sudo. I discovered this by trial and error. How can I find which groups are able to execute the command (evtest) without sudo????
According to evtest's manual
The output of evtest shows the information presented by the kernel
namely in /dev/input/
and
evtest needs to be able to read from the device; in most cases this means it must be run as root.
However, files in /dev/input/ belong to root/input with permissions 660, e.g.

Code:

$> ls -l /dev/input/event1crw-rw---- 1 root input 13, 65 Apr 23 12:11 /dev/input/event1
and are therefore readable (and writable) by user root or group input. If your user is in the input group, evtest is “able to read from the device”.

Code:

$> find /dev/ -group "input"
will show you all these files.

May also be relevant:
If evtest does not show any events even though the device is being used, the device may be grabbed by a process (EVIOCGRAB). This is usually the case when debugging a synaptics device from
within X. VT switching to a TTY or shutting down the X server terminates this grab and synaptics devices can be debugged.

The following command shows the processes with an open file descriptor on the device:

fuser -v /dev/input/eventX

Statistics: Posted by fabien — 2024-04-23 11:45



Viewing all articles
Browse latest Browse all 2849

Trending Articles