Re: shutdown/halt as user
On Wed, 13 Feb 2002 11:59:25 -0700
Jason Majors <jason@kwiqsilver.org> wrote:
> > How can I let a normal user use the "halt" or "shutdown" command? I need
> > this for the remote control of my TV box. I tried changing permissions, but
> > that didn't help. --Hans
> >
> I just did
> chmod a+s /sbin/shutdown
> But you have to rerun it whenever you update that package.
I think you can make it permanent by using:
# dpkg-statoverride --update --add root root 04755 /sbin/shutdown
(for woody/unstable only... IIRC, potato used suidregister)
[]s!
--
Gustavo Noronha Silva - kov <http://www.metainfo.org/kov>
*---------* -+-+--+-+--+-+--+-+--+-+--+-+--+-+--+-+--+-+--+-+-+
| .''`. | Debian GNU/Linux: <http://www.debian.org> |
| : :' : + Debian BR.......: <http://debian-br.cipsga.org.br>+
| `. `'` + Q: "Why did the chicken cross the road?" +
| `- | A: "Upstream's decision." -- hmh |
*---------* -+-+--+-+--+-+--+-+--+-+--+-+--+-+--+-+--+-+--+-+-+
Reply to: