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

Re: Remote admin of intermittently-connected machine?



On Wed, May 29, 2002 at 07:07:05PM +0100, Karl E. Jorgensen wrote:

...
| So, this weird scheme occured to me: It is possible to do *some* of the
| admin via email?

Sure, as long as the commands don't require user interaction.  All you
need is to devise a way to get the commands to the system.  You'd
probably want to setup a specific address that is directed to a
program.  That program (which you're about to write :-)) will read the
messgae, verify the signature (so that not just anybody can do stuff)
and feed the commands in it to /bin/sh.

The idea of serving a shell script via HTTP and pulling it when the
link comes up is nice, but you'll need to make sure that the same
script is only run once.  (what if your friends dials in, disconnects,
and connects again?)

-D

-- 

If any of you lacks wisdom, he should ask God, who gives generously to
all without finding fault, and it will be given to him.  But when he
asks he must believe and not doubt, because he who doubts is like a wave
of the sea, blown and tossed by the wind.
        James 1:5-6
 
GnuPG key : http://dman.ddts.net/~dman/public_key.gpg

Attachment: pgpulfn5q3zum.pgp
Description: PGP signature


Reply to: