Problem solve Get help with specific problems with your technologies, process and projects.

Scripting ftp, cont'd

This piggy-backs on Fred Mallett's tip from January 21, 2002. I use an ftp script similar to his with a .netrc file.

This piggy-backs on Fred Mallett's tip from January 21, 2002. https://searchenterprisewan.techtarget.com/tip/Scripting-FTP-using-the-netrc-file?FromTaxonomy=%252Fpr%252F6f9. I use an ftp script similar to his with a .netrc file. But I don't like the security risk on the .netrc file laying around all the time. So, as root, use crypt to encrypt the .netrc and put it someplace that only root can get to. Then, one minute before the user's ftp script kicks off, root's cron uses crypt to un-encrypt the .netrc file, puts it in the user's home directory, and uses chown and chmod so the user has access. The last line in the user's ftp script removes the .netrc file. Not an ideal solution, but this way there aren't any .netrc files laying around.
This was last published in January 2002

Dig Deeper on Network Performance Management

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchSDN

SearchEnterpriseWAN

SearchUnifiedCommunications

SearchMobileComputing

SearchDataCenter

SearchITChannel

Close