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
find size of folders and its subfolders with the Owner details bsandeep_80 UNIX for Advanced & Expert Users 5 04-15-2008 04:03 AM
Owner of file gets 'not owner' error for chgrp brizrobbo SUN Solaris 4 12-18-2007 05:30 PM
Error Message: find: cannot open /: Stale NFS file handle ezsurf SUN Solaris 1 10-11-2007 09:04 PM
Which application has a TCP socket open murphyboy UNIX for Dummies Questions & Answers 3 10-26-2005 06:29 AM
find - How to get rid of can not open msg GMMike UNIX for Dummies Questions & Answers 1 11-28-2004 04:24 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 12-11-2007
sleepy_11 sleepy_11 is offline
Registered User
  
 

Join Date: Aug 2007
Posts: 36
Question how to find the owner PID of open socket on Solaris9?

Hi all,
I am trying to connect the open socket and its owner PID on my Solaris9 system. But it seems not very easy.

As netstat is not as powerful as it is on Linux platform, without the "-program" option, and "lsof -i <UDP|TCP>@<hostIP>" won't show the one i want although it lists some idle and some .

Could you please suggest which tool shall i work with on this issue. Below is the one that i want to get:
# netstat -an | grep 161
*.161 Idle

Thanks in advance
  #2 (permalink)  
Old 12-11-2007
t452rtl t452rtl is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 1
Hi,

/usr/bin/pcred [pid | core]
will give you the credentials of each PID, also have a look at /usr/bin/pwdx as it will give you the working directory of the PID, if you need more have a look at the man page for any of the above.

Mike.
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 09:56 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