I am trying to perform loadkeys operation. For normal user, I am getting permission denied
error.
the error is as follows.
<tim@testps>~% loadkeys mykeys
Loading /usr/tim/mykeys
Keymap 0: Permission denied
Keymap 1: Permission denied
Keymap 2: Permission denied
KDSKBENT: Operation not permitted
loadkeys: could not deallocate keymap 3
Best Answer
You need root capabilities to use
loadkeys
. It is common to set the setuid permission bit onloadkeys
. Setting this bit will cause any processes spawned by executing theloadkeys
file to run as the owner of the file (usually root).For added security, you should change
loadkeys
's permissions to750
, make a group for it, and add any users that need to useloadkeys
to that group.