Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Oct 2006 21:22:39 +1000
From:      Nick Withers <nick@nickwithers.com>
To:        thomas@hindsight.de
Cc:        Free BSD Questions list <freebsd-questions@freebsd.org>
Subject:   Re: Member of group wheel, but still can't shutdown system?
Message-ID:  <20061005212239.b79a9498.nick@nickwithers.com>
In-Reply-To: <200610051324.14456.thomas@hindsight.de>
References:  <200610051324.14456.thomas@hindsight.de>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Thu, 5 Oct 2006 13:24:14 +0200
thomas@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@nickwithers.com
Web: http://www.nickwithers.com
Mobile: +61 414 397 446



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20061005212239.b79a9498.nick>