pc2: Debian 12 Bookworm KDE Wayland
The output of the command evtest (owner root) is different on both pc's
pc1:
Code: Select all
evtest
No device specified, trying to scan all of /dev/input/event*
Not running as root, no devices may be available.
Available devices:
/dev/input/event0: AT Translated Set 2 keyboard
/dev/input/event1: Power Button
/dev/input/event10: HUION 256C PEN STYLUS
/dev/input/event11: RFID Reader RFID Reader
/dev/input/event12: RFID Reader RFID Reader Keyboard
/dev/input/event14: HDA ATI HDMI HDMI/DP,pcm=3
/dev/input/event15: HDA ATI HDMI HDMI/DP,pcm=7
/dev/input/event16: HDA ATI HDMI HDMI/DP,pcm=8
/dev/input/event17: HDA ATI HDMI HDMI/DP,pcm=9
/dev/input/event18: HDA ATI HDMI HDMI/DP,pcm=10
/dev/input/event19: HDA ATI HDMI HDMI/DP,pcm=11
/dev/input/event2: Power Button
/dev/input/event20: HDA Digital PCBeep
/dev/input/event21: HDA Intel PCH Front Mic
/dev/input/event22: HDA Intel PCH Rear Mic
/dev/input/event23: HDA Intel PCH Line
/dev/input/event24: HDA Intel PCH Line Out
/dev/input/event25: HDA Intel PCH Front Headphone
/dev/input/event26: Huion Tablet
/dev/input/event27: Huion Tablet
/dev/input/event29: Huion keyboard
/dev/input/event3: YICHIP Wireless Device
/dev/input/event30: Huion mouse
/dev/input/event4: YICHIP Wireless Device Mouse
/dev/input/event5: YICHIP Wireless Device System Control
/dev/input/event6: PC Speaker
/dev/input/event7: YICHIP Wireless Device Consumer Control
/dev/input/event8: HUION Huion Tablet_H640P Keyboard
/dev/input/event9: Logitech USB Trackball
Select the device event number [0-30]:
Code: Select all
evtest
No device specified, trying to scan all of /dev/input/event*
Not running as root, no devices may be available.
Available devices:
Select the device event number [0-30]:
On pc2 the devices are not shown and I cannot execute the command without root
groupinf0:
pc1:
Code: Select all
groups
peer disk cdrom floppy sudo audio dip video plugdev input kvm netdev bluetooth lpadmin scanner libvirt libvirt-qemu
Code: Select all
groups
peer cdrom floppy sudo audio dip video plugdev users netdev bluetooth lpadmin scanner
My question:
When I look at the properties of the file evtest I see that the owner is 'root' and the group is 'root'. 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????