[HPADM] Re: SUMMARY : Hiding password embedded in Shell Scripts

From: Deepak John Cutinha (deepak_cutinha_at_yahoo.com)
Date: 07/31/03

  • Next message: Peter VAN ECK (DHL BE): "[HPADM] Ansi C compiler"
    Date: Wed, 30 Jul 2003 22:37:49 -0700 (PDT)
    To: hpux-admin@dutchworks.nl
    
    

    Hi Gurus,

    What if I want that in a script ..ie
    I donot want my password visible in a plain text file
    Rather I accept a password in a script and its
    encrypted right away while the user puts an input to
    my script.

    Thanks !!

    --Deepak
    --- "Lal, Neeraj" <Neeraj.Lal@pfizer.com> wrote:
    > Hi Admins
    >
    > Thanks for all your answers everbody said to me to
    > implement the .netrc
    >
    > I created the .netrc file in my home directory the
    > content of file is as
    > follows
    >
    > machine xx.xx.xx.xx login abcdefgh password tyuiop
    >
    > and then the script
    >
    > ftp -i -v xx.xx.xx.xx <<EOF 2>&1
    >
    > get filename
    > quit
    > EOF
    >
    > and it worked
    >
    > Thanks
    > Neeraj Lal
    >
    >
    >
    > -----Original Message-----
    > From: Lal, Neeraj [mailto:Neeraj.Lal@pfizer.com]
    > Sent: Tuesday, July 29, 2003 10:54
    > To: 'hpux-admin@DutchWorks.nl'
    > Subject: [HPADM] Hiding password embedded in Shell
    > Scripts
    >
    >
    > Hi Admins
    >
    > I am posting this question related to security I
    > have few shell scripts
    > running in my system to transfer (ftp ) the files on
    > daily basis from one
    > server to another and these shell scripts have
    > userid & password which
    > raises a security breach . Is there anyway to hide
    > these passwd in scripts.
    >
    > Please do let me know
    >
    > I will summarize
    >
    > TIA
    > Neeraj Lal
    >
    >
    > --
    > ---> 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)
    >

    __________________________________
    Do you Yahoo!?
    Yahoo! SiteBuilder - Free, easy-to-use web site design software
    http://sitebuilder.yahoo.com

    --
                 ---> 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: Peter VAN ECK (DHL BE): "[HPADM] Ansi C compiler"

    Relevant Pages

    • Re: Fwd: Re: Daemon configuration for Apache
      ... >> Now my problem is one apache startup The ... >> or Sxxhttp has used some configuration file based ... > on some shell script ... Do you Yahoo!? ...
      (perl.beginners)
    • SUMMARY: mass process
      ... Some mentioned expect script, use component Tcl etc, which I wish I had ... > Thanks and I will summarize. ... > Do you Yahoo!? ... Shopping - with improved product search ...
      (SunManagers)
    • Problem with Perl TK
      ... I have a script Perl, ... which enables me to carry out research with Yahoo. ... The error message that I have in return: ... Tk callback for .button1 ...
      (comp.lang.perl.tk)
    • Re: Cross-site Scripting with Local Privilege Vulnerability in Yahoo Messenger
      ... Messenger 8.1.0.209, and it does not ... Cross-site Scripting with Local Privilege Vulnerability in Yahoo ... Attacker can inject a malicious script with local ...
      (Bugtraq)
    • Re: Qpopper and init.d--Solved
      ... >> script from the link above is that my popper exec ... Do You Yahoo!? ... Mail has the best spam protection around ... To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list ...
      (Fedora)