Home » Infrastructure » Unix » how to find out database account details in unix env (Oracle 10.2.0.2.0,Unix)
how to find out database account details in unix env [message #508050] Thu, 19 May 2011 03:38 Go to next message
Mohan10g
Messages: 159
Registered: May 2009
Location: INDIA
Senior Member

Hi,

I want to find all places where current P10account is hardcoded with its pwd
in unix environment.

Database userid/pwd
--------------------
P10/dwdwdw456

I got an information saying those details are available in .profile and env.I checked it
in .profile it was not there.How to check in environment files?

Thanks
Re: how to find out database account details in unix env [message #508053 is a reply to message #508050] Thu, 19 May 2011 04:06 Go to previous messageGo to next message
Michel Cadot
Messages: 68625
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Quote:
I want to find all places where current P10account is hardcoded with its pwd

By "places" do you mean "files"?

Quote:
I got an information saying those details are available in .profile and env

Where did you get this from?

Regards
Michel
Re: how to find out database account details in unix env [message #508059 is a reply to message #508053] Thu, 19 May 2011 04:24 Go to previous messageGo to next message
Mohan10g
Messages: 159
Registered: May 2009
Location: INDIA
Senior Member



-By "places" do you mean "files"?

YES

-Where did you get this from?

One of my team told.
Re: how to find out database account details in unix env [message #508060 is a reply to message #508059] Thu, 19 May 2011 04:29 Go to previous messageGo to next message
Michel Cadot
Messages: 68625
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
As root:
find / -type f -exec grep -l dwdwdw456 {} \;

Regards
Michel
Re: how to find out database account details in unix env [message #508072 is a reply to message #508060] Thu, 19 May 2011 05:34 Go to previous messageGo to next message
Mohan10g
Messages: 159
Registered: May 2009
Location: INDIA
Senior Member

Thanks Michel.It works.


the output is like this

grep: can't open /etc/lvmconf/hrf55ww.conf
grep: can't open /etc/lvmconf/hrfaww.conf
grep: can't open /etc/lvmconf/hrf5ww.conf
grep: can't open /etc/lvmconf/hrf1ww.conf
grep: can't open /etc/lvmconf/hrf2ww.conf
grep: can't open /etc/lvmconf/hrf3ww.conf
grep: can't open /etc/lvmconf/hrf4ww.conf
grep: can't open /etc/lvmconf/hrr6ww.conf.old

I opened the file using vi editor, the file is empty saying

---"hrf2ww.conf" Permission denied


description of file
-rw------- 1 root sys 827392 May 15 03:08 hrf2ww.conf

Re: how to find out database account details in unix env [message #508076 is a reply to message #508072] Thu, 19 May 2011 05:49 Go to previous messageGo to next message
Michel Cadot
Messages: 68625
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
This is why I said "As root...".

Regards
Michel
Re: how to find out database account details in unix env [message #508083 is a reply to message #508076] Thu, 19 May 2011 06:24 Go to previous messageGo to next message
Mohan10g
Messages: 159
Registered: May 2009
Location: INDIA
Senior Member


OK. Thanks Smile

[Updated on: Thu, 19 May 2011 06:24]

Report message to a moderator

Re: how to find out database account details in unix env [message #512434 is a reply to message #508083] Mon, 20 June 2011 05:54 Go to previous messageGo to next message
nirma1230
Messages: 1
Registered: June 2011
Location: islamabad
Junior Member
In unix,How can you find out if you have the permission to send a message.?

To check the file permissions, we can give the command;

% ls -l

If, in the output, we get; -rw------- , then only the owner have the right to send the message, while others can't.

[Are you doing Aspire program, of TCS???
Re: how to find out database account details in unix env [message #512437 is a reply to message #512434] Mon, 20 June 2011 06:01 Go to previous message
Michel Cadot
Messages: 68625
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Quote:
In unix,How can you find out if you have the permission to send a message.?

Ask your sysadmin.

Note this is an Oracle forum not a Unix one.

Quote:
[Are you doing Aspire program, of TCS???

What does this mean???

Regards
Michel
Previous Topic: install probleme with oracle 10g for AIX with silent mode
Next Topic: How to Force SENDMAIL to Rewrite Sender Addresses in Solaris
Goto Forum:
  


Current Time: Fri Mar 29 10:04:04 CDT 2024