On Wed, Sep 28, 2016 at 02:45:26PM +0200, Murk Fletcher wrote: > Hi, > > Anybody ever been in a similar situation? > > % myscript_start > /etc/rc.d/myscript: need root privileges > % doas myscript_start > doas: myscript_start: command not found > % su > Password: > you are not in group wheel > Sorry > % groups > wheel > % cat /etc/doas.conf > permit nopass keepenv :wheel > > Thanks! > > Murk
Your prompt being %, I suspect you use csh. and have the path setup somehow inside csh proper. Whereas doas is going to run sh, have a different PATH, hence your trouble. Do yourself a favor, get rid of csh. It's dead, Jim.