Encrypting or maksing password in cron


 
Thread Tools Search this Thread
Operating Systems Solaris Encrypting or maksing password in cron
# 1  
Old 07-18-2014
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
  1. Login to AIX/Unix system using an OS account,
  2. Schedule a service to execute the required script - The script will have a PLM utility and requires a User ID, Password & group as command line arguments. For plm, the Application user ID, password & group need to be provided
now there are export control regulation that prevent other users from accessing this password, even to a system admin with root access

Initially we have hard coded the paswd to a variable in a txt file, then use that $variable as argument, but as per new rules there is an opportunity for a sysadmin with root/super user access can get to know the contents of this file thus causing a security breach

Note the OS account and application userid/password are different, i need to provide the application user id/passwd for running the script

appreciate your help on this
# 2  
Old 07-18-2014
You cannot stop root user of being root.

If you have password in file on the server in question, the administrator will know it, possibly other users based on file permissions.

I would recommend using other auth mechanisms for your application (like Kerberos or alike) *AND* having some sort of auditing on the application side in database, so if shit hits the fan, you will know who started it based on audit logs.

On Solaris you might configure auditing for a certain call or script execution which will notify who started what in which time. I am unfamiliar with AIX in this regard, but i'm sure there are similar auditing methods on IBM.

You should also take into consideration that auditing can be very intensive on machines and databases, depending on the depth of auditing.

Hope that helps
Regards
Peasant.
# 3  
Old 07-18-2014
Agreed, you cannot stop root from being root. And frankly -- if you can't trust your root user, you're already in it eyeball-deep, there may be no saving this situation.

No matter how complicated your scheme for encrypting the password, the computer will have to automatically decrypt it to use it, therefore the root user can automatically get it by doing the exact same things. And if you invent a method which doesn't involve a password, then root wouldn't need a password either.

This is not the first thread on the topic and will not be the last. It just won't work this way. Sorry.

Last edited by Corona688; 07-18-2014 at 12:17 PM..
# 4  
Old 07-18-2014
And to top it all off, putting the userid and password on the command line pretty much makes it readable by anyone logged onto the box by using the "ps" utility.

In other words, your application itself violates your security requirements.

As far as keeping root users from accessing the password, you need to look into RBAC.
# 5  
Old 07-18-2014
Assuming you correctly stated the security requirement, the person(s) who created the requirement know very little about UNIX. Period. Sounds like a management decision.

root owns or can own everything ,or can gain access to all devices, process memory, etc.

Solaris Example pargs -e pid lets root see any environment variable in any process. Period. No limits nothing.

The only way to implement this securely is to change the root password, give it to you only, and remove any privileges granted in Solaris RBAC (/etc/user_attr ) from the persons who had root. And hope you are a great sysadmin. Based on your question - please do not consider doing this. You are not ready.
This User Gave Thanks to jim mcnamara For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. High Performance Computing

Encrypting interconnect

Hi, i've got a qusetion regarding interconnect of compute nodes. In our company we are running a Simulation Cluster which is administrated by the Simulation department. Now our central IT requires to encrypt the interconnect of the compute nodes. Does anybody in that business encrypt... (3 Replies)
Discussion started by: fiberkill
3 Replies

2. Shell Programming and Scripting

Help needed regarding cron job scheduler with CyberArk Password security

Hi All, I have a script which will restart some web server and bring it up again. For that I need to retrieve 3 password from CyberArk (Cyber-Ark - Wikipedia, the free encyclopedia) vault. My question is: Is this possible to schedule the script through cron and automatic password... (0 Replies)
Discussion started by: saps19
0 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. Shell Programming and Scripting

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 (7 Replies)
Discussion started by: krackjack
7 Replies

6. Solaris

Encrypting a script......

Hiiiiii..... every one..... I have written a script, and i want to make that script confidential.So that, only i can see that script. I am using " crypt " command in solaris 9, to encrypt that script.But when i am executing this... (6 Replies)
Discussion started by: prashantshukla
6 Replies

7. UNIX for Advanced & Expert Users

encrypting files in ksh

I have an ascii file that I want to encrypt and save. I have seen this done before, but cannot remember how, nor can I find anything in any of my manuals or online help. Any ideas how to do this? Thanks, Henry (6 Replies)
Discussion started by: hwollman53
6 Replies

8. 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

9. 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

10. UNIX for Dummies Questions & Answers

encrypting Unix flatfile

Hi, I am new to unix. I have a flat file that needs to be pgp encyrpted in ASCII format and ftped in Ascii format to remote location. Can any one tell me the steps involved in the pgp encryption of the unix file. I will really appreciate if any one can help me with the pgp encryption shell... (1 Reply)
Discussion started by: rkumar28
1 Replies
Login or Register to Ask a Question