Mailing List Archive


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

RE: [tlug] cron and lftp problems



Jake,
Thanks man that did it.
I agree on rsync but this the tool I am allowed to use... in this case.
Soon it will be time for a little overhaul of the way things are done and
then we ditch our lftp friend for something a little more secure/usable.

Thanks again,
Erin


-----Original Message-----
From: Jake Morrison [mailto:jake_morrison@example.com]
Sent: Wednesday, January 26, 2005 6:30 PM
To: tlug@example.com
Subject: Re: [tlug] cron and lftp problems


Hi Erin,

--- "Erin D. Hughes" <erin@example.com> wrote:
> Any thoughts on this would be appreciated. Thanks

The PATH for cron scripts is different from that of your interactive
shell.

Generally speaking, from a security standpoint, it is not a good idea
to
rely on the PATH for administrative scripts.

You should just hard code the path to the lftp command in the script,
e.g. /usr/bin/lftp -e ......

If you have some control over the server, you might be better off
with something like rsync running over ssh to mirror things.
Otherwise, you might use a real scriptable client like kermit.

> Erin

Regards,
Jake



--
The TLUG server is hosted by Open Source Development Lab Japan.
http://www.osdl.jp/

To unsubscribe from this mailing list,
please see the instructions at <http://www.tlug.jp/list.html>


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links