Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 03-15-2010, 06:56 AM   #1
Registered: Aug 2009
Posts: 118

Rep: Reputation: 15
encrypt the password


We have the backup script which contains username and password.we put into cron.
how to Encrypt passwords used in cron on batch jobs.
Old 03-15-2010, 07:10 AM   #2
Senior Member
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,191

Rep: Reputation: 105Reputation: 105
Use public key authentication --
Old 03-15-2010, 07:13 AM   #3
Senior Member
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,272

Rep: Reputation: 148Reputation: 148
specifically on what purpose you are using password on your backup script?
1) to ssh ?
2) to scp ?
Old 03-15-2010, 07:14 AM   #4
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
Consider three things. One is google, Two is whether or not you need to encrypt at all, and Three is whether you're sure your script *really* needs to contain a username and password.

You may be doing this all wrong
Old 03-15-2010, 11:31 AM   #5
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Moved: This thread is more suitable in <Security> and has been moved accordingly to help your thread/question get the exposure it deserves.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
crypt() perl function to encrypt Password in shell scripts or How Encrypt passwords ? balakrishnay Linux - General 13 01-14-2010 09:35 AM
How to encrypt a password to the /etc/shadow file? Milosevic Linux - Newbie 2 12-13-2005 02:14 PM
Encrypt a partition with a password ? Coume Linux - Security 1 04-26-2005 03:00 PM
How can i encrypt the password in .fetchmailrc?? Wimpie22 Linux - Networking 2 05-25-2004 08:52 PM
Encrypt password for /etc/shadow - SunOS liguorir Linux - Software 1 05-06-2004 10:28 PM

All times are GMT -5. The time now is 01:21 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration