Re: shutdown for non-root users Daniel J. Smale - RSG <dasm@pml.ac.uk> wrote:
> Guys & Gals,
> How do I enable a non-root user to execute:
> shutdown -h 0
> The only message I get is that only root can do this.
> I've checked the permissions on the shutdown binary, and it is
> executable by all (obviously, else it would display the message!)
> I am missing a step... could someone please fill me in?
A dirty trick i've done for my music-maschine,
which is actuelly a slackbox.
1. I deleted the passwd of the user 'halt'
2. I gave the user 'halt' the uid of 0
So if you get the login prompt, type halt. And
the maschine shuts down. The user halt has no
shell, so there is no security-problem.
Ok, it's dirty. But i'm sure, there are more ways to Rom.
Peter
--
__________________________________________________ ___________________________
Microsoft has been doing a really bad job on their OS.
Linus Torvalds
__________________________________________________ ___________________________ |