NetBSD Problem Report #56483

From  Wed Nov  3 20:25:31 2021
Return-Path: <>
Received: from ( [])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id 279931A9239
	for <>; Wed,  3 Nov 2021 20:25:31 +0000 (UTC)
Message-Id: <>
Date: Wed,  3 Nov 2021 20:25:29 +0000 (UTC)
Subject: doas /sbin/reboot hangs
X-Send-Pr-Version: www-1.0

>Number:         56483
>Category:       pkg
>Synopsis:       doas /sbin/reboot hangs
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    nikita
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 03 20:30:00 +0000 2021
>Last-Modified:  Thu Nov 04 10:03:37 +0000 2021
>Originator:     Don Allen
>Release:        9.2
NetBSD 9.2 NetBSD 9.2 (GENERIC) #0: Wed May 12 13:15:55 UTC 2021 amd64
I have installed doas on a system running NetBSD 9.2. /usr/pkg/etc/doas.conf includes the line:

permit nopass dca as root cmd /sbin/reboot

If I do

doas /sbin/reboot

from a shell in my account, the system hangs and fails to reboot.

On the other hand, I also have sudo installed, with this line in the sudoers file:

dca     giovanni = NOPASSWD: /sbin/reboot

and I do

sudo /sbin/reboot

the system reboots properly.

I have used the identical doas.conf on openbsd and freebsd and 'doas /sbin/reboot' works properly.
See full description.



Responsible-Changed-From-To: pkg-manager->nikita
Responsible-Changed-When: Thu, 04 Nov 2021 10:03:37 +0000
Over to maintainer


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.