Today's Posts

Discuss UNIX and Linux computer and network security, cyber security, cyber attacks, IT security, and more.

Security of Environment Variables

environment variables, password hide, secure, security

Login to Reply

Thread Tools Search this Thread
# 1  
Old 05-11-2016
Security of Environment Variables


I'm trying to help a client with passing decrypted passwords into child processes. I just want to ask how secure (or not) it is to pass those decrypted passwords via environment variables?

# 2  
Old 05-11-2016
maybe if you gave an example or be more clear in of what you are trying to do, we could give our comments...
The Following User Says Thank You to vbe For This Useful Post:
denden (05-11-2016)
# 3  
Old 05-11-2016
The Oracle Import process can be a good example of this. If you put the password
in the command, then you can see it when you use the "ps -ef | grep impdp".

impdp system/change_on_install ...

But if you use the echo command and pipe to the impdp command, then you won't
see the password when you do "ps -ef | grep impdp"

echo "system/change_on_install" | impdp  ...

Another option would be to put a delimited text file under the ~/.ssh directory.
You can then grep for the line that you want and use the cut command to grab
the password.


You script that needs a password would have the following. Including the carrot
and colon will make sure that the line starts with the username and does not
accidentally pick up more than one line if you have similar usernames. You do
need to make sure that each username is unique in the file.
THIS_PWD=`grep "^user1:" | cut -d":" -f2`

The Following User Says Thank You to gandolf989 For This Useful Post:
denden (05-11-2016)
Login to Reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Environment Variables angshuman HP-UX 0 01-25-2014 06:45 AM
Environment Variables mahinkhan22 Homework & Coursework Questions 5 10-17-2012 12:14 AM
Environment Variables sai_2507 HP-UX 1 05-29-2012 04:43 AM
Reg. Environment variables ecearund Shell Programming and Scripting 0 05-23-2012 06:35 AM
Environment variables rwa25 Shell Programming and Scripting 5 04-28-2012 03:57 AM
Environment variables sravani UNIX for Dummies Questions & Answers 6 10-20-2010 11:22 AM
using environment variables lassimanji Shell Programming and Scripting 2 04-29-2009 03:58 PM
Environment variables location. gio001 Shell Programming and Scripting 1 02-03-2009 05:29 PM
environment variables radhika03 Shell Programming and Scripting 3 01-22-2007 01:58 PM
environment variables in cdpath gfhgfnhhn UNIX for Dummies Questions & Answers 3 09-27-2006 02:39 AM
environment variables sumsin Programming 6 03-13-2006 11:17 AM
help..Environment variables... sekar sundaram UNIX for Dummies Questions & Answers 3 08-30-2005 04:35 AM
environment variables spavlov UNIX for Dummies Questions & Answers 3 08-20-2003 10:49 AM
environment variables Esaia Programming 2 02-20-2003 08:19 PM
what is the use of Environment variables indianguru UNIX for Dummies Questions & Answers 2 07-24-2001 10:41 PM

All times are GMT -4. The time now is 07:07 PM.

Unix & Linux Forums Content Copyright 1993-2018. All Rights Reserved.
Show Password