LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 30
password as binary format


Dear Friends ,

I have to write a RMAN script following way :

rman target sys/sys123 << !
run
{
allocate channel t1 type disk;
backup format 'df_%t_%s_%p'
(database);}

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
rlhartmann
Member
 
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:

http://linux.starkstate.net/rhartman...orking_ssh.pdf
 
Old 05-04-2008, 09:29 PM   #3
eggixyz
Member
 
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
 
  


Reply


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


All times are GMT -5. The time now is 05:19 AM.

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