Hiding userid and password in ftp script
Posted: Thu Sep 20, 2007 7:07 am
I am running a ftp script as below and it works fine.
ftp -v -n abc.syscon.com
user adminuser login1q2w3e
lcd /company/user/shellscripts
put flatfile.txt flatfile.txt
put
bye
I am hardcoding the userid and password in FTP script. Anyway, to hide the userid/password in ftp script? Bascially I don't want to type the details, for other people to see (in case they get the ftp script)
ftp -v -n abc.syscon.com
user adminuser login1q2w3e
lcd /company/user/shellscripts
put flatfile.txt flatfile.txt
put
bye
I am hardcoding the userid and password in FTP script. Anyway, to hide the userid/password in ftp script? Bascially I don't want to type the details, for other people to see (in case they get the ftp script)