Member of group wheel, but still can't shutdown system?
Nick Withers
nick at nickwithers.com
Thu Oct 5 04:23:01 PDT 2006
On Thu, 5 Oct 2006 13:24:14 +0200
thomas at hindsight.de wrote:
> Hi All,
>
> I've just installed FreeBSD 6.1 and listed myself as a member of the wheel
> group during the add users portion of the installation. For some reason I
> have not put a finger on yet I cannot shutdown the system "do not have
> permission" to effect the command.
The shutdown(8) binary ("/sbin/shutdown") is not owned by the
"wheel" group (do an "ls -l" on it), but by the "operator"
group.
> Went back as root on a later session and
> re-entered my name in /etc/group to the wheel account to no avail, anybody
> got an idea as to where I need to look?
I personally set the execute bit on "/sbin/shutdown" for
others on my desktop machine, as I want anyone using it
(locally, no remote access enabled) to be able to shut it down.
To do this: "chmod o+x /sbin/shutdown". Might be a good idea to
understand the setuid concept beforehand, if you don't
already...
> Thanks,
> Tommy2
--
Nick Withers
email: nick at nickwithers.com
Web: http://www.nickwithers.com
Mobile: +61 414 397 446
More information about the freebsd-questions
mailing list