The isolated networking lab is running Red Hat Linux 9 (Shrike). We still use this "ancient" release, because given the simplicity of the protocols examined, it is sufficient. In addition, because of the equipment and the textbook we are following, it requires a big amount of effort to change that. Eventually (sometime soon) we will have to do it, since issues are accumulating and support vanishes. However, the question and the issue encountered is a little more general (or at least that's what I want to believe). On one of the computers I could not get an output for the command
[guest@shakti guest]$ netstat -g
netstat: invalid option -- g
usage: netstat [-veenNcCF] [<Af>] -r netstat {-V|--version|-h|--help}
netstat [-vnNcaeo] [<Socket>]
netstat { [-veenNac] -i | [-vnNc] -L | [-cnNe] -M }
-r, --route display routing table
-L, --netlink display netlink kernel messages
-i, --interfaces display interface table
-M, --masquerade display masqueraded connections
-v, --verbose be verbose
-n, --numeric dont resolve names
-e, --extend display other/more informations
-c, --continuous continuous listing
-a, --all, --listening display all
-o, --timers display timers
<Socket>={-t|--tcp} {-u|--udp} {-w|--raw} {-x|--unix} --ax25 --ipx --netrom
<Af>= -A {inet|ipx|netrom|ddp|ax25},... --inet --ipx --netrom --ddp --ax25
The net-tools version installed is 1.60-12. I thought that installing a newer version could solve the problem. For all of the following, I am acting as root. After downloading this I tried to install it
rpm -Uvh net-tools-2.0-1.ram0.97.i686.rpm
and I get the following
Preparing... ########################################### [100%]
1:net-tools ########################################### [100%]
error: unpacking of archive failed on file /bin/dnsdomainname;529d4737: cpio: symlink failed - Permission denied
/bin/dnsdomainname points to hostname. I changed the permissions to 777 and with chattr I removed all the attributes (sorry for the bad practice, but had to be sure).
[root@shakti bin]# ls -alstr dnsdomainname
0 lrwxrwxrwx 1 root root 8 Dec 4 2003 dnsdomainname -> hostname
[root@shakti bin]# ls -alstr hostname
12 -rwxrwxrwx 1 root root 9092 Feb 11 2003 hostname
[root@shakti bin]# lsattr dnsdomainname
------------- dnsdomainname
[root@shakti bin]# lsattr hostname
------------- hostname
Unfortunately, it did not fix the problem. I also tried to install earlier versions of the net-tools but I got the same error. Any ideas?