Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Apr 2016 18:06:13 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Ian Smith <smithi@nimnet.asn.au>
Cc:        Jason Hunt <jhunt@lynden.on.ca>, freebsd-questions@freebsd.org
Subject:   Re: Cannot enter sleep mode as non-root user (Operation not permitted)
Message-ID:  <20160415180613.c066affb.freebsd@edvax.de>
In-Reply-To: <20160416000316.V1139@sola.nimnet.asn.au>
References:  <mailman.115.1460635202.18382.freebsd-questions@freebsd.org> <20160416000316.V1139@sola.nimnet.asn.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 16 Apr 2016 00:24:17 +1000 (EST), Ian Smith wrote:
> In freebsd-questions Digest, Vol 619, Issue 5, Message: 13
> On Wed, 13 Apr 2016 22:30:38 -0400 Jason Hunt <jhunt@lynden.on.ca> 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 :)

That is the key information: The program must be run by root.
Being in the operator or wheel group is not sufficient.



>  > Does anyone have suggestions for how to troubleshoot this?
> 
> Revise expectations or hack acpiconf.c :)

Or use a program like su, sudo, or super, for example like this:

	% sudo acpiconf -s3

which should work as expected. It's possible to assign this command
to a shell alias or even to a key (or key combination).



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160415180613.c066affb.freebsd>