- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Want to encrypt some password data.
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2003 02:46 AM
11-24-2003 02:46 AM
The change on the scripts is easy, just hard code a user id and password into the script.
This is in my opinion a maintenance nightmare and a security hazard, even if permissions are tight on the scripts. Its important that the oracle binary owners password not be just sitting around.
I came up with a scheme to store these passwords in a file in /etc/ that is locked down nice and tight. The permissions would be read only owned by oracle. No other groups or users would get access.
Thats okay, but if for some reason someone gets the file, they've got the oracle password.
I have never had to write a script to encrypt data. Its just never come up, here or on any of my consulting gigs. We have a couple of older scripts that do this, but they became non-functional as part of the 11i upgrade. I'm not sure why.
So, I'm looking for a simple way to encrypt the data in my little password file so that if sonmeone gains access to the file they get garbage.
So, I'm turning to itrc for some a script stub that does the job and improves security a bit.
I'm also open to opinions as to better ideas on how to handle this.
Our system has strong random number encryption/generation and a good variety of security programs.
Note: I will get to my congrats thread, I just want to compose a thoughtful message and thank everyone for their greetings.
Thanks.
As always, points for all participants, bunnies for workable answers. I will try and test these ideas today.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2003 02:52 AM
11-24-2003 02:52 AM
Re: Want to encrypt some password data.
One is a utility I've never used (sorry) called crypt. (man crypt for details)
Another way you could do it is to use shc -the generic script compiler. I use shc to prevent people from getting into my scripts and either changing them or seeing what I did. It can be downloaded from here http://www.datsi.fi.upm.es/~frosal/frosal.html
let me know what you decide.. i'm interested in this topic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2003 02:54 AM
11-24-2003 02:54 AM
Re: Want to encrypt some password data.
Crypt would be very simple or somathing like
http://www.ricksoft.co.uk/downloads/rccrypt/rccrypt.htm
Regards,
Ribert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2003 02:58 AM
11-24-2003 02:58 AM
Re: Want to encrypt some password data.
in Linux-envs you can find a utility 'htpasswd' , which handles 'private' passwd-like files. We use that for CVS- and Apache-stuff.
A HP-UX port shouldn't be too difficult.
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2003 03:04 AM
11-24-2003 03:04 AM
Re: Want to encrypt some password data.
CONNECT / AS SYSDBA
where you used to use
CONNECT INTERNAL
?
-- Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2003 03:05 AM
11-24-2003 03:05 AM
Re: Want to encrypt some password data.
Just change connect internal in your scripts to connect '/ as sysdba' (note the apostrophes). This works for 8i also.
If you want to go the other way then crypt is what you want but you'll have to keep the encryption key secret somehow.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2003 03:23 AM
11-24-2003 03:23 AM
Re: Want to encrypt some password data.
I will go to the test environment and check try out the last two suggestions.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2003 03:37 AM
11-24-2003 03:37 AM
SolutionThis way:
- secure connection possible
- no plain text password EVER tramsmitted
- changes to script are trivial
- full sysdba access
- even a "ps -ef " trick will only show "/", with no hint on the password itself
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2003 03:46 AM
11-24-2003 03:46 AM
Re: Want to encrypt some password data.
I am asking my dba if this is acceptable to him.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2003 04:43 AM
11-24-2003 04:43 AM
Re: Want to encrypt some password data.
sqlplus '/ as sysdba' replacing sqlplus internal rather than connect...
with the apostrophes being relevant.
Can't see any reason for your dba to object, the first is the 9i equivalent of the second.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2003 04:46 AM
11-24-2003 04:46 AM
Re: Want to encrypt some password data.
I've tested it in a script and think he will approve. I'm slightly surprised he did not suggest it.
The ecnryption thing will also work because our forms compile scripts need to use this scheme.
Still investigating, will get to point assignment today.
The dba is off, taking care of his baby daughter today so I'm not going to bother him.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2003 08:48 AM
11-24-2003 08:48 AM
Re: Want to encrypt some password data.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2003 07:26 PM
11-24-2003 07:26 PM
Re: Want to encrypt some password data.
When starting from the command line they are needed, ie
sqlplus '/ as sysdba'.
When calling from within sqlplus, they are not, ie
connect / as sysdba
The confusion is perhaps confounded by the fact that the svrmgrl tool (used at oracle 7 and 8) has been removed, and its functionality rolled up into sqlplus.
So in oracle 7/8 you would typically:
--
# svrmgrl
SVRMGR> connect internal
-- in 9i you would either
# sqlplus '/ as sysdba/'
-- or, as at this site
# sqlplus /nolog
SQL> connect / as sysdba
--
Hope that helps
-- Graham