Sven --

...and then Sven Bentlage said...
% 
% Thanks for the tips to everyone.
% > Can you turn the app into a web app?
% Unluckily that would be even more difficult, I think.

Hmmm...


% I`m trying to write a small script / program to shutdown a linux box 
% remotely.

That sounds easy.  Why not a secure & password-locked web page that takes
a challenge-response password and then uses sudo to execute a reboot?
You can do any number of things to ensure a one-time use of a page and
even a password so that nobody can resubmit the page or even the captured
stream and bounce your box when you weren't expecting it.

Frankly I'd rather something like this than a remote script that can
connect to bounce the box; the latter seems entirely too hackable and now
you've just given away root access entirely.


HTH & HAND

:-D
-- 
David T-G                      * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/      Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to