[olug] Unix Tip: FTY AUTOMATED TRANSFERS
Daniel Pfile
daniel at pfile.net
Tue May 13 03:43:07 UTC 2003
I don't have a problem with it, as long as the target account is a low
permission user. Something like a chrooted jail for backups or a
special file drop via a custom ftp or web server type account. You'd
want to be sure the source machine was very secure also, at least
behind a strong firewall. I wouldn't have a password sitting on a front
end machine.
As always, it's a balance between security and easy of use. For just
being lazy, it's not a good idea, but if you need a script to transfer
a file once an hour, it's worth looking into.
-- Daniel
On Monday, May 12, 2003, at 09:37 PM, Trent Melcher wrote:
> I don't know about the rest of you, but I have never been confortable
> hardcoding a password in a script, no matter what the permissions of
> the
> file are.
>
> Trent
>
> -----Original Message-----
> From: olug-bounces at olug.org [mailto:olug-bounces at olug.org] On Behalf Of
> Unix Guru Universe
> Sent: Monday, May 12, 2003 6:36 PM
> To: olug at olug.org
> Subject: [olug] Unix Tip: FTY AUTOMATED TRANSFERS
>
>
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
> UNIX GURU UNIVERSE
> UNIX HOT TIP
>
> Unix Tip 1958 - May 12, 2003
>
> http://www.ugu.com/sui/ugu/show?tip.today
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
>
> FTY AUTOMATED TRANSFERS
>
> Automatic file transfer through a script
> between machines using FTP.
>
> If one wants to transfer files between
> UNIX machines, here are the steps to follow.
> 1. The .netrc file
> a. create .netrc in the home directory.
> b. add this line
> machine <target machine> login <login name> password <password>
>
> e.g.
> machine abc.mydomain.com login deepak password deep123
>
> c. chmod 600 .netrc
>
> 2. The Script:
> ftp abc.mydomain.com << endl
> prompt
> put test1.c
> quit
> endl
>
> This should do it.
>
>
> This tip generously supported by: dkotian1 at rediffmail.com
>
>
> -----------------------------------------------------------------------
> -
> --
> To Subscribe: http://www.ugu.com/sui/ugu/show?tip.subscribe
> To Unsubscribe: http://www.ugu.com/sui/ugu/show?tip.unsubscribe
> To Submit A Tip: http://www.ugu.com/sui/ugu/show?tip.today
>
> =======================================================================
> =
> ==
> DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND
> ARE NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE
> UNIX
> GURU UNIVERSE. ALL TIPS ARE "USE AT YOUR OWN RISK". UGU ADVISES THAT
> ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.
>
> Unix Guru Universe - www.ugu.com - tips at ugu.com - Copyright 1994-2001
> =======================================================================
> =
> ==
>
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug
>
>
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug
More information about the OLUG
mailing list