sshgun
(sshgun main)
1
I trying to emulate a keyboard from golang. a lib that do this require to do the following:
sudo groupadd uinput
sudo usermod -a -G uinput my_username
sudo udevadm control --reload-rules
echo "SUBSYSTEM==\"misc\", KERNEL==\"uinput\", GROUP=\"uinput\", MODE=\"0660\"" | sudo tee /etc/udev/rules.d/uinput.rules
echo uinput | sudo tee /etc/modules-load.d/uinput.conf
what are the implications of do this ? any way to do it directly or without sudo or permissions changes, what I need to read. ?
there is any utility to use with bash on fedora. ?
This looks sensible to me. Only user in the uinput
group can access the device.
Once this is done you will not need sudo
to access the device.
A utility to do what? emulate a keyboard?
boredsquirrel
(boredsquirrel)
Tags updated
3
sshgun
(sshgun main)
4
to send keyboard events. I don’t need a keyboard. I only need a way to send keyboard events.
And that is a priv’ed operation, I assume, which is why you have built the software you indicated and need to setup permissions as you showed.