Joel Carnat wrote:
> Hi,
>
> I want net-snmpd to run a script via the extend directive.
> This script has to run a command using doas to get temporary root
> permission.
>
> The script is run on snmpcmd call but the doas command returns:
> doas: a tty is required
>
> Is there a way to run doas from net-snmpd ?
> I already have doas running from collectd-exec without issues.
it needs a tty to ask for the password. you can use the nopasswd option, or
something like expect to provide a tty.
No comments:
Post a Comment