Date: Fri, 28 Jul 2000 08:53:35 +1200 From: Jonathan Chen <jonathan.chen@itouch.co.nz> To: Chris Moline <chris@theboss.net> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: How come halt has to be suid to work? Message-ID: <20000728085335.A87002@jonc.ntdns.wilsonandhorton.co.n> In-Reply-To: <3.0.3.32.20000726233343.0068b930@theboss.net>; from chris@theboss.net on Wed, Jul 26, 2000 at 11:33:43PM -0700 References: <3.0.3.32.20000726233343.0068b930@theboss.net>
index | next in thread | previous in thread | raw e-mail
On Wed, Jul 26, 2000 at 11:33:43PM -0700, Chris Moline wrote:
> Usually when I finish up on my system I am working as root and so I never
> noticed this before. The permissions were 555 but every time I used halt as
> an ordinary user I got operation not permitted. I fixed this problem by
> changing the permissions to 4550. Why does it have to be like this?
Well, halt *should* be just 555 so that it is only operative if root
runs it. If it is a set-uid root program, any user that logs on will be
able to halt the machine!
--
Jonathan Chen <jonathan.chen@itouch.co.nz>
----------------------------------------------------------------------
"You can get farther with a kind word and a gun
than you can with a kind word alone" - Al Capone
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000728085335.A87002>
