Re: net-snmpd extend and doas : a tty is required

2018-04-13 Thread Martijn van Duren
On 04/12/18 23:13, Joel Carnat wrote: >> Le 12 avr. 2018 à 21:10, Stuart Henderson a écrit : >> >> On 2018-04-12, Joel Carnat mailto:j...@carnat.net>> 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

Re: net-snmpd extend and doas : a tty is required

2018-04-12 Thread Joel Carnat
> Le 12 avr. 2018 à 21:10, Stuart Henderson a écrit : > > On 2018-04-12, Joel Carnat mailto:j...@carnat.net>> 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 r

Re: net-snmpd extend and doas : a tty is required

2018-04-12 Thread Stuart Henderson
On 2018-04-12, 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

Re: net-snmpd extend and doas : a tty is required

2018-04-12 Thread Ted Unangst
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

net-snmpd extend and doas : a tty is required

2018-04-12 Thread Joel Carnat
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