This question already has an answer here:
Is it possible in Unix/Linux to access environment variable from another sessions. For instance
export MYPASSWORD = 'MySecretPassword"
would it be possible by another user on the same machine to access it?
From my understanding, the password will be as environment variable as long as the session is up.
Is having the password in script (program) a more secure option (first the program reads the password from the encrypted password store) ?