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-14-2008 12:10 AM
login password.... venkatramana UNIX for Dummies Questions & Answers 1 12-07-2007 09:03 AM
Root login password pmpx SUN Solaris 1 02-23-2006 03:03 PM
login & password cab UNIX for Advanced & Expert Users 8 08-01-2003 04:33 PM
Hiding password from ps sudojo Shell Programming and Scripting 7 04-04-2002 05:52 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-18-2004
ctcuser ctcuser is offline
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,
  #2 (permalink)  
Old 05-18-2004
vipas vipas is offline
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
  #3 (permalink)  
Old 05-18-2004
kduffin's Avatar
kduffin kduffin is offline Forum Advisor  
UN1X
  
 

Join Date: Nov 2003
Location: Maryland
Posts: 449
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
  #4 (permalink)  
Old 05-19-2004
google's Avatar
google google is offline Forum Advisor  
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
  #5 (permalink)  
Old 05-19-2004
ctcuser ctcuser is offline
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
  #6 (permalink)  
Old 05-19-2004
google's Avatar
google google is offline Forum Advisor  
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 10:48 AM..
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:42 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0