1 |
Jarry wrote: |
2 |
> I'm facing this problem: I *have to* allow one non-root user |
3 |
> to shutdown my server remotely (ssh). I know I could create |
4 |
> account for him and add his login into /etc/shutdown.allow but |
5 |
> I do not want to grant him full shell access. |
6 |
> |
7 |
> I thought about adding "/sbin/shutdown -a h now" as his shell |
8 |
> into /etc/passwd so that right after he authenticates himself, |
9 |
> shutdown is called. But I'm not sure something like this is |
10 |
> possible (shutdown must be probably called from shel)... |
11 |
> |
12 |
> Or is there maybe some other way how to create very restricted |
13 |
> account where user could not do anything else but call shutdown? |
14 |
|
15 |
Could you create a simple webapp that requires authentication and has a |
16 |
big Shutdown button? Something like that would be fairly easy to make |
17 |
with Django, or something simpler like Pylons. |
18 |
|
19 |
-- |
20 |
R |