Re: help: ifconfig, reboot, w commands not responding

Dr. S.K. Singh (sks@goat.up.nic.in)
Sat, 19 Dec 1998 11:45:03 +0530 (IST)


On Fri, 18 Dec 1998, Kevin K. Sochacki wrote:

Hi,

after I put

PATH= "/bin:/usr/bin:/sbin:/usr/sbin:$PATH" in .bashrc file of root most
of the commands are responding except "w", "who". Below is the response of
"w" comm.

10:56am up 17 min, 0 users, load average: 0.00, 0.00, 0.00
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT

> here's a little script that should set perms right, providing you've
> been using 'rpm'.
>
> #!/bin/sh
> for i in `rpm -qa`
> do
> rpm --setperms $i
> done

Above script was inserted in /etc/rc.d/rc.local file. Since I upgraded
kernel 2.0.36 from 2.0.32 and deleted directories /lib/modules/2.0.32,
/lib/modules/2.0.31 the script required above directories.

The kernel 2.0.36 made a directory "/lib/modules/2.0.36-0.7".
>From this directory the modules colud not be loaded while booting, then I
moved above directory to /lib/modules/2.0.36 and modules started working.
Above script asked for /lib/modules/2.0.36-0.7 directory. what should I do
now?

>
> also, as other have suggested make sure you PATH is set.
> you should have at least the following in /etc/profile.
>
> PATH=/bin:/usr/bin:/sbin:/usr/sbin
>
> and make sure it doesn't get stepped on in root's /root/.bash_profile
>
>
>

With Kind Regards,

Sincerely Yours

/-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_\
:|->Dr. S.K.Singh <http://cirg.up.nic.in> |:
:|->Central Institute for Research on Goats, |:
:|->Mathura, UP. India, Ph. 0565-763325, 763334 |:
\_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_/

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu