[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /sbin/halt always changes its access rights

On Wed, Jan 19, 2005 at 08:03:36PM +0000, Miquel van Smoorenburg wrote:
> In article <[🔎] 20050118195938.GH13154@p12n.org>,
> Peter Samuelson  <peter@p12n.org> wrote:
> >[Otto Wyss]
> >> I've set the s attrtibute of halt since on my desktop any user may
> >> stop the system. But about each second month or so it's set back to
> >> it's original rights probably by a package upgrade. Is there a way to
> >> keep the access rights or any better way to handle these kind of
> >> problems.
> >
> >dpkg-statoverride --add root root 02755 /sbin/halt
> Note that making random programs like "halt" setuid root might
> be a serious security hole.

I find ctrl-alt-del quite nice in these cases, changing a bit
/etc/inittab and using acpi/apm to powerdown. Any decent login
manager allows system actions, btw.

Francesco P. Lovergine

Reply to: