I want to encrypt a database system administration password into a file or environment variable. Then, I want to decrypt the password from the file or environment variable so nobody sees the clear text password.
For example, I have the database password of developement.
I need to execute the following line to access the database:
I want users not to see the development password in clear text.
Thanks!
Last edited by Yogesh Sawant; 08-11-2010 at 01:14 AM..
Reason: added code tags
I have a strange question for someone regarding the AIX 5.2 environment.
Here is the scenerio:
I have a script that is running a menu full of options.
1. I like food
2. I don't like food
Enter Option:_
Enter userID:_
Enter Password:_
(The menu is conversational only so go with me on... (6 Replies)
Hi folks, I am writing a script which asks the user to enter a user name and password to telnet and logon to some other machine. The script promts the user to enter the login name and password as below.
echo "Enter the login name to be used to login on the machine"
read login
echo "Enter the... (4 Replies)
Hi Friends.
I am new to scripting now i want to change the root password using the script with standard password.
which is the easy scripting to learn for the beginner, Thanks in advance. (2 Replies)
Hi all,
I have one script with me , say automate.sh.
I would like to encrypt it, so that no one can see the contents of this script.
Can anyone guide me to encrypt/decrypt this script?
Regards,
akash (1 Reply)
Hi,
I am new to Unix server and shell scripting.I want to encrypt username/password using shell script.I know that there's a Crypt command to encrypt but it is not installed in my unix server and cannot be installed due to some reason.So i want the shell script of the crypt command or is there... (3 Replies)
Hi,
Could you pls. help me in encryting a database password on Solaris 10 Box.
eg : username : test
password : t est123
The request is to encrypt the test123 so that no one can understand the what the password is ?
thanks (7 Replies)
Iam using the teradata...
and running the scripts in unix,
I wan to encrypt the teradata password in Unix...
my hostname is : bprod
usename: KRN777
passwrd: passwrd
can ant one tell me the exact command to encrypth the passwrd....
thanks, (5 Replies)
Hello,
I am a newbie in Shell scripting. At the moment, I have a program written in C++ which gives an output file in text format. I would like to write a shell program which can take that output file and encrypt it and later if needed I want to decrypt it.
Could someone please help or... (3 Replies)
Hello experts,
I am an PLM application admin, use AIX/SOlaris servers where application is installed
to schedule a cron in my system this what i do
Login to AIX/Unix system using an OS account,
Schedule a service to execute the required script - The script will have a PLM utility and... (4 Replies)
Discussion started by: kraghum
4 Replies
LEARN ABOUT DEBIAN
checkpw
checkpw(8) System Manager's Manual checkpw(8)NAME
checkpw - checks password against the file ~/Maildir/.password
SYNOPSIS
checkpw prog
DESCRIPTION
checkpw reads descriptor 3 through end of file and then closes descriptor 3. There must be at most 512 bytes of data before end of file.
The information supplied on descriptor 3 is a login name terminated by , a password terminated by , a timestamp terminated by , and
possibly more data. There are no other restrictions on the form of the login name, password, and timestamp.
If the password is unacceptable, checkpw exits 1. If checkpw is misused, it may instead exit 2. If there is a temporary problem checking
the password, checkpw exits 111.
If the password is acceptable, checkpw runs prog.
prog consists of one or more arguments.
Compatible tools
There are other tools that offer the same interface as checkpw
Note that these tools do not follow the getopt interface. Optional features are controlled through (1) the tool name and (2) environment
variables.
The password database
checkpw checks the password against the content of the file Maildir/.password in the user's home directory corresponding to the login name.
Maildir may be overidden through the environment variable $MAILDIR.
Process-state changes
Before invoking prog, checkpw sets up $USER, $HOME, $SHELL, its supplementary groups, its gid, its uid, and its working directory.
FILES
~/Maildir/.password
SEE ALSO checkapoppw(8), qmail-popup(8), qmail-pop3d(8)AUTHOR
This manual page was written by Gerrit Pape <pape@smarden.org>, for the Debian GNU/Linux system.
checkpw(8)