Visit The New, Modern Unix Linux Community


Encrypting the login password on Solaris 10


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Encrypting the login password on Solaris 10
# 1  
Encrypting the login password on Solaris 10

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
# 2  
the password is always encrypted (from plain text) anyway in the /etc/passwd file.

you can change the encryption algorithm though by modifying /etc/security/policy.conf
# 3  
Did you mean you want to get encrypted password in script, decrypt & use it internally?

-Nithin.
# 4  
Try using the perl crypt command if yo uahve perl installed:

perl -e 'print crypt("password", "salt"),"\n"'
# 5  
In general, putting passwords out in files is a big security leak. Don't do it.

And while markdjones code will encrypt it, it would take any programmer about 10 minutes to crack it. So that means you would have to encrypt the perl code as well.
There used to be a tool to create an executable image from perl. I dunno if it is still around.
# 6  
Quote:
Originally Posted by jim mcnamara
In general, putting passwords out in files is a big security leak. Don't do it.

And while markdjones code will encrypt it, it would take any programmer about 10 minutes to crack it. So that means you would have to encrypt the perl code as well.
There used to be a tool to create an executable image from perl. I dunno if it is still around.
Surprisingly, it still is. 'perlcc'. I tried it once to speed up perl scripts that an ancient Pentium-based server was grinding under the weight of. It produced nonworking executables 5 megabytes in size. Needless to say I wasn't impressed -- with perlcc or perl in general...
# 7  
Quote:
Originally Posted by jim mcnamara
In general, putting passwords out in files is a big security leak. Don't do it.

And while markdjones code will encrypt it, it would take any programmer about 10 minutes to crack it. So that means you would have to encrypt the perl code as well.
There used to be a tool to create an executable image from perl. I dunno if it is still around.
Ah, see I didn't mean for him to put that in the script. I figured he would run that separately and just place the encrypted password in the file

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #706
Difficulty: Medium
Shared information bias is known as the tendency for group members to spend more time and energy discussing information that all members are already familiar with (i.e., shared information), and less time and energy discussing information that only some members are aware of.
True or False?

8 More Discussions You Might Find Interesting

1. Solaris

Encrypting or maksing password in cron

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

2. Cybersecurity

SSH password-less login issue between linux and solaris

Hello Gurus, I am trying to set up bidirectional password-less login between a linux and a Solaris. The way I am doing is very simple, which is creating pub/priv key pairs on each host and add the pub key to each other's authorized_keys file: ssh-keygen -t rsa (I tried dsa, and it didn't work... (4 Replies)
Discussion started by: error_lee
4 Replies

3. Shell Programming and Scripting

Encrypting password

Hello All, I need to accept a password from the user and validate it, without having to hard-code it anywhere. Any ideas? (3 Replies)
Discussion started by: optimus_1
3 Replies

4. Shell Programming and Scripting

Encrypting the password

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)
Discussion started by: nani1984
5 Replies

5. Solaris

SSH Password-less login fails on password expiry.

Hi Gurus I have a few Sol 5.9 servers and i have enabled password less authentication between them for my user ID. Often i have found that when my password has expired,the login fails. Resetting my password reenables the keys. Do i need to do something to avoid this scenario or is this... (2 Replies)
Discussion started by: Renjesh
2 Replies

6. Solaris

password less login from openssh to SSH Secure Shell 3.0.1 Sun solaris 7

Hi, I would like to login from a Sun server running ssh: Sun_SSH_1.1, SSH protocols 1.5/2.0, OpenSSL 0x0090704f to ssh: SSH Secure Shell 3.0.1 on sparc-sun-solaris2.6 How can I achieve this? Thanks a million in advance (1 Reply)
Discussion started by: newbewie
1 Replies

7. AIX

Encrypting password

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)
Discussion started by: Justman
6 Replies

8. Shell Programming and Scripting

Encrypting a password for shell script

All, 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... (1 Reply)
Discussion started by: bubba112557
1 Replies

Featured Tech Videos