[25158] in Athena Bugs
netstat doesn't work
daemon@ATHENA.MIT.EDU (Derek Atkins)
Thu Oct 30 12:33:55 2003
To: bugs@MIT.EDU
From: Derek Atkins <warlord@MIT.EDU>
Date: 30 Oct 2003 12:33:53 -0500
Message-ID: <sjmsmla635q.fsf@kikki.mit.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
on kikki.mit.edy, a 9.2.23 Sun box:
--> netstat -an
ip open: Permission denied
can't open mib stream: Bad file number
--> truss netstat -an
truss: cannot trace set-id or unreadable object file: /usr/bin/netstat
--> ls -l /usr/bin/netstat
-r-xr-sr-x 1 root adm 55184 Nov 9 2002 /usr/bin/netstat
--> tail /etc/athena/version
...
Athena Workstation (sun4) Version 9.2.23 Wed Oct 29 18:49:12 EST 2003
Athena Server (sun4) Version Update Wed Oct 29 18:49:14 EST 2003
Athena Server (sun4) Version 9.2.23 Wed Oct 29 18:53:04 EST 2003
--> strings /usr/bin/netstat | grep /dev
/dev/ip
kstat_open(): can't open /dev/kstat
--> ls -l /devices/pseudo/ip@0:ip
crw-rw---- 1 root sys 3, 0 Jun 20 04:14 /devices/pseudo/ip@0:ip
--> ls -l /devices/pseudo/kstat@0:kstat
crw-rw-rw- 1 root adm 90, 0 Oct 3 2001 /devices/pseudo/kstat@0:kstat
So, either netstat is incorrectly in the adm group, or
/dev/ip is incorrectly in the sys group.
I've manually changed the group of netstat to sys, but this seems to
be a common bug because I've fixed the same issue on Heather Anne's
Solaris machines previously.
-derek
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord@MIT.EDU PGP key available