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
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
Dr. S.K. Singh wrote:
>
> Hi all,
> Due to some reasons (may be because of hacking) file permissions
> of /tmp, /bin, /bin/ps of RH 5.0 kernel 2.0.36 got changed and I had
> problems with the box. After help from linux-net and linux-admin, I was
> able to set the file permissions right.
> I am still facing problem as the commands specific to root i.e
> ifconfig, route, w, reboot are not responding. Please suggest the possible
> measures to overcome the problem.
>
> 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 email "unsubscribe linux-admin" to majordomo@vger.rutgers.edu
> See the linux-admin FAQ: http://www.kalug.lug.net/linux-admin-FAQ/
--
(...Later..:)
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/ _/ Exxon Research & Engineering _/
_/ _/_/_/ _/_/ _/_/_/ _/ Kevin K. Sochacki _/
_/ _/ _/ _/ _/ _/ ICS CB042/CB050 (908) 730-2911 _/
_/ _/_/_/ _/_/ & _/_/_/ _/ mailto:kksocha@erenj.com _/
_/ _/ _/ _/ _/ _/ PERSONAL _/
_/ _/_/_/ _/ _/ _/_/_/ _/ mailto:kks@superlink.net _/
_/ _/ http://mars.superlink.net/kks _/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu