Thank you that worked.



On Sat, Mar 18, 2017 at 6:08 PM, Theo Buehler <[email protected]> wrote:

> On Sat, Mar 18, 2017 at 05:48:50PM +0530, Hrishikesh Muruk wrote:
> > I am trying to update from OpenBSD 6.0 release to stable by compiling
> > sources. Following the instructions at
> >
> > http://man.openbsd.org/OpenBSD-6.0/release
> >
> > I was able to build the kernel. I have rebooted with the new kernel.
> >
> > When building the system I get an error when executing this command:
> >
> > $ cd /usr/src && make SUDO=doas build
> >
> > The error:
> > --
> > test -z "doas" || doas rm -f /var/run/testdata_root
> /var/run/keycommand_root
> > doas: Operation not permitted
> > *** Error 1 in regress/usr.bin/ssh (Makefile:207 'clean')
> > *** Error 1 in regress/usr.bin (<bsd.subdir.mk>:48 'cleandir')
> > *** Error 1 in regress (<bsd.subdir.mk>:48 'cleandir')
> > *** Error 1 in . (<bsd.subdir.mk>:48 'cleandir')
> > *** Error 1 in /usr/src (Makefile:77 'build')
> >
> > --
> >
> > Doas works fine for me when I use is on commandline. The files
> > /var/run/testdata_root /var/run/keycommand_root do not exist on my
> system.
> >
> > I am building as a user in group wsrc.
> >
> > Am I doing something incorrect ? How do I get around this issue?
> >
>
> I believe you need a rule such as
>
>         permit keepenv nopass root as root
>
> in your /etc/doas.conf for this step to work. In /usr/src/Makefile,
> 'make cleandir' is run with SUDO and now root tries to run 'doas rm -f ...'
>
> > Thanks
> > Hrishi

Reply via email to