From owner-freebsd-questions Wed Jul 26 22:51: 0 2000 Delivered-To: freebsd-questions@freebsd.org Received: from eagle.prod.itd.earthlink.net (eagle.prod.itd.earthlink.net [207.217.120.24]) by hub.freebsd.org (Postfix) with ESMTP id 0644637B91A for ; Wed, 26 Jul 2000 22:50:55 -0700 (PDT) (envelope-from eogren@rod.darktech.org) Received: from rod.darktech.org (ip106.cambridge2.ma.pub-ip.psi.net [38.32.112.106]) by eagle.prod.itd.earthlink.net (8.9.3-EL_1_3/8.9.3) with ESMTP id WAA28261; Wed, 26 Jul 2000 22:50:46 -0700 (PDT) Received: (from eogren@localhost) by rod.darktech.org (8.10.1/8.9.3) id e6R5oQu00761; Thu, 27 Jul 2000 01:50:26 -0400 (EDT) (envelope-from eogren) Date: Thu, 27 Jul 2000 01:50:26 -0400 From: Eric Ogren To: Chris Moline Cc: freebsd-questions@FreeBSD.ORG Subject: Re: How come halt has to be suid to work? Message-ID: <20000727015026.B698@earthlink.net> References: <3.0.3.32.20000726233343.0068b930@theboss.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i 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 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG If you put yourself in the "operator" group, you should be able to run /sbin/halt (at least shutdown -h, which I am 99% sure calls halt, works). Eric 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?(I > really don't like suid-I had to reinstall several times because of > malicious scripts. It is not so bad now that I know to watch out for them.) > > TIA, > Chris Moline > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message