Score:0

sudoer without asking passwd

pe flag

I would like my user (which is included in the sudoers file), to be able to run a certain script that needs certain root privileges without being asked for the password. Inside there are some commands with the sudo command.

In my case, I have configured the /etc/sudoers file as follows:

myuser   ALL=(ALL:ALL) ALL
myuser   ALL=(root) NOPASSWD: /home/myuser/something_administrative.sh

But still, it keeps asking me for my password in order to execute the command. What is wrong with the configuration and how can I fix it?

I sit in a Tesla and translated this thread with Ai:

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.