Score:0

Allow to kill mounhelper to all users

gb flag

I have some machines with kubuntu 20lts, everyday when the machine start and the user's login, smb4k mount shares. But sometimes some shadows didn't mount because mountheper hungs. I need to allow all users to execute the kill command in a bash script to remote them All shares My /etc/sudoers is ALL ALL=NOPASSWD: /use/bin/kill But it doesn't work... -bash: kill: (1709) - operación no permitida What I'm doing wrong?

djdomi avatar
za flag
`sudo kill` needs to be used. but also take a look onto https://www.cyberciti.biz/faq/linux-unix-running-sudo-command-without-a-password/
cn flag
With the way that you have it, the user(s) or group would have to be specified in the sudoers file at the beginning of the line with the command. Do you have that?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.