Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-04-2008, 02:46 PM   #1
Registered: Oct 2005
Location: Bangladesh
Posts: 502

Rep: Reputation: 31
password as binary format

Dear Friends ,

I have to write a RMAN script following way :

rman target sys/sys123 << !
allocate channel t1 type disk;
backup format 'df_%t_%s_%p'

Now I want to write this script where I want to put my user password as "binary" format , don't want to use text format. like :

rman target sys/****** << !

Is there any way to do it or u have any ideas about this ? Or, is there any way to call the "password" from
another text file ?

Here I mention that , I dont want to use "read" option which takes the user password manually .

plz help ... ...
Old 05-04-2008, 06:15 PM   #2
Registered: Mar 2008
Posts: 73

Rep: Reputation: 16
I don't know what rman is, so I don't understand exactly what your trying to do, but if you're trying to execute a program on a remote server,
or copy data across the network to a remote server, I highly suggest using ssh, you can set up ssh keys that will allow connection without storing a password in any file.

Here are some slides that might help:
Old 05-04-2008, 09:29 PM   #3
Registered: Apr 2008
Posts: 310

Rep: Reputation: 30
Hey There,

Unless there's encryption and decryption involved, reading in a password any way has its risks.

If you want to call the password from a file, you could make a file called /.password (. so it's hidden, chmod 700 user = the user you want to be able to access it)

and in the script

pwd=`cat /.password`

rman target sys/$pwd

Like I said. Using this method requires that you do as much as you can to protect the file you're going to read the password from.

Hope that helps

, Mike


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
password as binary format shipon_97 Linux - Software 1 05-05-2008 07:09 PM
Voice Record in Binary format knockout_artist Linux - Software 5 12-28-2005 02:27 PM
Misc Binary Format Handler xcon Linux - General 3 04-01-2003 07:52 AM
kernel binary format support rch Linux - General 0 03-05-2003 01:18 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:40 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration