The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
login ssh without password alfredo HP-UX 2 04-13-2008 08:10 PM
login password.... venkatramana UNIX for Dummies Questions & Answers 1 12-07-2007 06:03 AM
Root login password pmpx SUN Solaris 1 02-23-2006 12:03 PM
login & password cab UNIX for Advanced & Expert Users 8 08-01-2003 12:33 PM
Hiding password from ps sudojo Shell Programming and Scripting 7 04-04-2002 01:52 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 05-18-2004
Registered User
 

Join Date: Mar 2004
Posts: 39
Question Hiding login/password in process!

Hello,
I am trying to figure out away to hide a command from users when performing a ps check. I have a ksh that purges a table in a database. If I perform a >ps -eaf |grep ksh, I get the login id and password. I do not want other users seeing this. Is there a way to hide this. The login id that I use is not a login id on the unix box.
DBA's will not give permission to my unix id to update the database. We are using a AIX 5.1 platform.

thanks,
Reply With Quote
Forum Sponsor
  #2  
Old 05-18-2004
Registered User
 

Join Date: Mar 2004
Posts: 10
Instead of passing userid/password to ksh, read them from a file. Change access permission of file so that only user who is running ksh can read it.

-DM
Reply With Quote
  #3  
Old 05-18-2004
kduffin's Avatar
UN1X
 

Join Date: Nov 2003
Location: Virginia
Posts: 441
Is this for DB2 or Oracle? If Oracle, you can use OPS$ users in the database that are identified externally. Your DBA can point the way.

Regards,

Keith
Reply With Quote
  #4  
Old 05-18-2004
google's Avatar
Moderator
 

Join Date: Jul 2002
Location: Atlanta
Posts: 740
If you are not in a trusted environment, then OPS$ may not be what you want. See this link
Reply With Quote
  #5  
Old 05-19-2004
Registered User
 

Join Date: Mar 2004
Posts: 39
Hello,
I tried the following and it works, the only thing is I'm not sure if there is an option in 'ps' or 'grep' to display re-directs.

>sqlplus <<!^Juser/passwd^Jselect * from table;^Jexit^J!

>ps -eaf |grep sqlplus
guest 97432 125548 82 09:31:56 pts/1 0:04 sqlplus
Reply With Quote
  #6  
Old 05-19-2004
google's Avatar
Moderator
 

Join Date: Jul 2002
Location: Atlanta
Posts: 740
What you did does not work for me during my session. Another thing to do is to use the -s flag to sqlplus to put it in silent mode. Every little bit helps I guess.

Last edited by google; 05-19-2004 at 06:48 AM.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:51 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0