Sensible way to manage sudo commands from script?

@f33dm3bits Thanks again. After some problems I got it to work, at last.
Here's what I have now, in /etc/sudoers:
Code:
%wheel ALL(ALL) ALL
%wheel ALL=(ALL) NOPASSWD: /usr/bin/xkeysnail,/usr/bin/kill
Note that the second line must be after the first line for it two work. I had to comment the %wheel ALL=(ALL) ALL line from /etc/sudoers.d/10-installer. I don't know why Manjaro (and probably Arch too) is set up like this.
Also, I'm not sure why this works for the kill command, since my shell (Zsh) tells me, when running type kill: kill is a shell builtin. But it works, and I'm happy.
Thanks a lot guys!
 


Glad to have helped you find a working solution!
 

Members online


Top