Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Dec 2017 14:53:03 +0100
From:      <rank1seeker@gmail.com>
To:        hackers@freebsd.org
Subject:   Operator group and reboot cmd
Message-ID:  <20171218145303.00007fb2@gmail.com>

next in thread | raw e-mail | index | archive | help
11.1 REL-p6

As a non-root user and member of operator group, I was able to issue a
poweroff and shutdown commands (group set to operator), but not a
reboot (group set to wheel) command (Operation not permitted).

I was able to reboot by:
$ shutdown -r now

But to use reboot, cmd I had to:
# chgrp 5 /sbin/reboot
# chmod 4554 /sbin/reboot
    Shouldn't this be set by default install?
# exit

$ reboot



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