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

bill.thompson_at_goodyear.com
Date: 04/14/05

  • Next message: Shiff Israel: "[HPADM] Printing PDF files"
    To: kepstein@uti.co.za
    Date: Thu, 14 Apr 2005 09:33:43 -0400
    
    

    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)
    

  • Next message: Shiff Israel: "[HPADM] Printing PDF files"

    Relevant Pages

    • Re: Scripted FTP transfer
      ... Rather then specify the username and password in your script, ... going to run the ftp script, ... If you are running this from root, the .netrc will be created in / ... I'm trying to write a FTP command file on the fly to ...
      (comp.unix.sco.misc)
    • Re: fetch / wget problem
      ... > I'm trying to write a script which gets a file from remote FTP server. ... You may be able to do this with a .netrc in the user folder that's running ...
      (freebsd-questions)
    • Re: scheduling ftp commands with at
      ... >> One way to do this is to create a script and redirect stdin to the ftp ... Try 'man netrc', its mentioned in the man page for ftp. ...
      (comp.unix.shell)
    • Re: global / system-wide netrc file?
      ... automate ftp login with a .netrc file through a script run by a ... The /root/.netrc file works fine if I run the script manually ... According to my man page ftp uses $HOME to look for .netrc, ...
      (comp.unix.shell)
    • openssh
      ... recognize a netrc file. ... Perhaps the code assumes something other than what MPE provides, a la ftp, although I have tried providing ".netrc" where it should live. ... SSH FTP also is unaware of MPE file types other than fixed ASCII and binary which really is sufficient for most transfers between non-like machines. ...
      (comp.sys.hp.mpe)