Originally Posted by Redagadir
instead you can specify the command with fixed options to restrict usage of that command
Out of curiosity, how would I do that?
To put more context to the issue, I found out why the password was necessary for the command in the first place. This is the line from my .bashrc file:
alias wiiclem='wminput -r -c /home/neko/wiimoteconfigs/wminput-clementine.config'
The problem was that wminput needs to use /dev/uinput, which has restricted access by default. I could change the permissions on it, which removed the need to enter a password, but as I later found out, this was only a temporary fix because everything in /dev regenerates on boot, meaning I had to change the permissions again. By adding this to /etc/rc.local:
chgrp (group) /dev/uinput
chmod 660 /dev/uinput
I assigned uinput to my group on startup and gave my group read/write access, thus removing the need to enter a password when running wiiclem
If the fixed options path is likely to be easier/more elegant/more secure/more 'correct', though, I'd be happy to hear it for future reference!