[HPADM] SUMMARY : Hiding password embedded in Shell Scripts

From: Lal, Neeraj (Neeraj.Lal@pfizer.com)
Date: Wed Jul 30 2003 - 17:21:06 EDT


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)


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