1834346 Members
2011 Online
110066 Solutions
New Discussion

Re: netstat -a

 
Bernard  Bravo
Advisor

netstat -a

Hi,

I have a user that needs an execute permission for this command. I already provided the proper execute permission on the program and directory where netstat resides.
Are there devices or files that should be set for me to able to let the user execute the 'netstat -a'.

thanks ..hope guro's could help me on this.

bernard
Do good, Look Good, Feel Good
6 REPLIES 6
Sridhar Bhaskarla
Honored Contributor

Re: netstat -a

Hi,

Users should be able to execute netstat without any problems.

The following are the default permissions

-r-xr-sr-x 1 bin sys 131072 Jan 28 1999 /usr/bin/netstat

And it should work if you too have the same.

What error are they getting?.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Helen French
Honored Contributor

Re: netstat -a

Hi,

Normal users will be able to use the netstat command without any problems. Did you check up whether it's a permission issue or Network issue ?

HTH,
Shiju
Life is a promise, fulfill it!
John Dvorchak
Honored Contributor

Re: netstat -a

Since you didn't tell us the error that the user is getting, could it be that /usr/bin is not in their path?
If it has wheels or a skirt, you can't afford it.
Ravi_8
Honored Contributor

Re: netstat -a

Hi,
In all my systems. all users able to execute netstat

all my system has netstat like this

-r-xr-sr-x 1 bin sys 86016 Jun 10 1996 netstat
never give up
Bernard  Bravo
Advisor

Re: netstat -a

Hi,

Here is the permission set for the program.

-rwxrwsrwx 2 bin sys 122880 Apr 13 1999 netstat.

Is there services or files that I need to check which is used by netstat?


please advise.

thanks.

bern
Do good, Look Good, Feel Good
Steven Sim Kok Leong
Honored Contributor

Re: netstat -a

Hi,

Full access permissions is NOT the permissions you want to give netstat. What is someone replaces the binary with his own and compromises your system security?

I agree with John. It could be your path settings. Check by executing:

# echo $PATH

Is /usr/bin in your path?

As also mentioned above, please post your error message to allow us to pinpoint the cause of your problem better.

From the security perspective, I would suggest that you perform a checksum check on the netstat binary. If not, check the time and size of the binary. Because, it might already have been compromised, such as by a rootkit exploit.

Hope this helps. Regards.

Steven Sim Kok Leong