Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Mar 1997 11:30:09 +0800 (WST)
From:      Adrian Chadd <adrian@obiwan.aceonline.com.au>
To:        "K. Marsh" <durang@u.washington.edu>
Cc:        questions@freebsd.com
Subject:   Re: chmod, chown, and shutdown.
Message-ID:  <Pine.BSF.3.95q.970321112532.3691A-100000@obiwan.aceonline.com.au>
In-Reply-To: <Pine.A32.3.95.970320160858.52298D-100000@goodall.u.washington.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

 On Thu, 20 Mar 1997, K. Marsh wrote:

> My roomate uses my computer to check his e-mail and do a little web
> browsing in FreeBSD, as well as to use Word, Excel, and other expensive
> programs in that other operating system.
>
Poor thing, I feel sorry for them :)
 
> How can I give him the ability to issue "shutdown" without giving him root
> privileges?
> 
> I am aware that it may be a security hole, but he's not going to hack my
> system. I just don't want him to able to destroy everything by accident.
>

Ctrl-Alt-Del on the FreebSD console will work fine (the same key combo as
in DOS :)
 
> I tried using chmod and chown on the binary, but even when he owns it and
> it's in 777 mode, it doesn't execute.
>
It needs to b run as root (either by root, or setuid root) for shutdown to
work.. the default (on my system, 2.2-GAMMA) is chown root.operator, and
chmod 4750 (so root can run it, and people in the operator group can run
it setuid to root, but noone else).

 > I'm using 2.2-RELEASE if it makes any difference. 
> 
> Thanks,   Ken Marsh
> 
> 

Cya..

Adrian Chadd
<adrian@psinet.net.au>





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.970321112532.3691A-100000>