Re: (Hopefully) quick policy question

Jore <[email protected]> Wed, 27 Sep 2023 09:46:48 +1000
Newsgroups gmane.comp.tools.sudo.user
Message-ID <[email protected]>
On 27/9/23 8:29 am, Mihai Moldovan wrote:
> * On 9/26/23 20:18, Jore wrote:
>>      test ALL = NOPASSWD: /usr/bin/bash /home/test/acme-wrapper.sh *
>>
>>
>> Regardless, when test user runs:
>>
>> $ bash /home/test/acme-wrapper.sh foobar123.example.com
>> /usr/bin/bash: /root/.acme.sh/acme.sh: Permission denied
>>
> Because you probably meant to execute sudo bash /home/test/acme-wrapper.sh
> foobar123.example.com? :)

But I did execute that.

If you check the wrapper script, it calls '/root/.acme.sh/acme.sh' which 
isn't being run as superuser, which is the error reported as above.

What am I doing wrong here?


____________________________________________________________
sudo-users mailing list <[email protected]>
For list information, options, or to unsubscribe, visit:
https://www.sudo.ws/mailman/listinfo/sudo-users