[HPADM] Re: RE: ftp script/batch job

From: bill.thompson@goodyear.com
Date: Thu Apr 14 2005 - 09:33:43 EDT


All,

I don't normally reply to all on this list however since Kevin did I thought it was appropriate.

While a .netrc file will do the job it is guaranteed to raise a audit flag.

.netrc is a well know file and it contains host names, user names, and passwords all in clear text. In other words it tells a hacker
where to go, who to log in as, and what password to use.

If you must script FTP consider, as a minimum, putting the FTP commands (including user name and password) in a separate file in a
secure location.
                                                                                                                                       
 Bill Thompson
 Sr UNIX Systems Administrator
 The Goodyear Tire & Rubber Company
 6-0599
                                                                                                                                       
 Contains Confidential and/or Proprietary Information.
 May Not Be Copied or Disseminated Without Express Consent of The Goodyear Tire & Rubber Company.
                                                                                                                                       

                                                                                                                                      
             "Epstein, Kevin" <kepstein@uti.co.za>
             Sent by: hpux-admin-owner@DutchWorks.nl
                                                                                                                                   To
                                                               "'Neil Paniraj'" <npaniraj@yahoo.com>, hpux-admin@dutchworks.nl
             04/14/2005 08:48 AM cc
                                                                                                                                      
                                                                                                                              Subject
                                                               [HPADM] RE: ftp script/batch job
                                                                                                                                      
                                                                                                                                      
                                                                                                                                      
                                                                                                                                      
                                                                                                                                      
                                                                                                                                      

create a .netrc file for the user that will run the job.
man .netrc
Also then instead of invoking ftp with just the ftp command, you invoke it with ftp -i

Rgds,
Kevin Epstein
UTi - Centurion

-----Original Message-----
From: hpux-admin-owner@DutchWorks.nl
[mailto:hpux-admin-owner@DutchWorks.nl]On Behalf Of Neil Paniraj
Sent: 14 April 2005 02:35 PM
To: hpux-admin@dutchworks.nl
Subject: [HPADM] ftp script/batch job

UNIX Gurus:

I need to put a cron job to ftp files from a HP-UX
server to an NT Box. I'd really appreciate if some
one who is doing something similar is kind enough to
send me the script/sequence used by him/her. Is there
a way of doing this non-interactively without asking
for password? Any input from you would be most useful.

Thanks a lot in advance.

NEIL.

__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/

--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)
--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:47 EDT