From owner-freebsd-questions@freebsd.org Fri Apr 15 14:24:29 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EBF39AED7F8 for ; Fri, 15 Apr 2016 14:24:29 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 722731454 for ; Fri, 15 Apr 2016 14:24:28 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id u3FEOH6l049927; Sat, 16 Apr 2016 00:24:18 +1000 (EST) (envelope-from smithi@nimnet.asn.au) Date: Sat, 16 Apr 2016 00:24:17 +1000 (EST) From: Ian Smith To: Jason Hunt cc: freebsd-questions@freebsd.org Subject: Re: Cannot enter sleep mode as non-root user (Operation not permitted) In-Reply-To: Message-ID: <20160416000316.V1139@sola.nimnet.asn.au> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Apr 2016 14:24:30 -0000 In freebsd-questions Digest, Vol 619, Issue 5, Message: 13 On Wed, 13 Apr 2016 22:30:38 -0400 Jason Hunt wrote: > When attempting to enter sleep mode as a non-root user, I receive the error: > acpiconf: request sleep type (3) failed: Operation not permitted Correct. > Searching online yielded a suggestion that the user must be a member of > wheel, however my account is in the wheel and operator groups (confirmed by > running /usr/bin/id) smithi on t23% id -p uid smithi groups smithi wheel operator staff dialer network vboxusers smithi on t23% acpiconf -s3 acpiconf: request sleep type (3) failed: Operation not permitted Being in wheel just means you can su root, and only root can suspend the system .. unless you have a suspend button .. or know root's password :) > This is happening on my laptop with a fresh install of 10.3-RELEASE, and > desktop with March snapshot of -CURRENT. Both systems properly enter and > resume from sleep mode when run as root. My above snippet is on FreeBSD 8; this is nothing new. > Does anyone have suggestions for how to troubleshoot this? Revise expectations or hack acpiconf.c :) cheers, Ian