on kubuntu 20lts
sudo sh -c ' echo "ALLĀ ALL=(NOPASSWD: /usr/bin/kill" >> /etc/sudoers'
I have some machines with Kubuntu 20.04 LTS, everyday when the machines start, and the users login, smb4k mounts shares. But sometimes some shares dont mount because mounthelper hangs up. I need to allow all users to execute the kill command in a bash script to remote them All the shares.
But it doesn't work... -bash: kill: (1709) - operation not permitted The process is owned by root What I'm doing wrong?