Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

replacing a system file

Discussion in 'General Discussion' started by thanatopsizer, Apr 28, 2004.

  1. thanatopsizer

    thanatopsizer Member

    Joined:
    Dec 5, 2003
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    151
    how would one go about replacing a system file such as ifconfig? What kind of permissions is it supposed to have?
     
  2. BenThomas

    BenThomas Well-Known Member

    Joined:
    Feb 12, 2004
    Messages:
    598
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Houston, Texas USA
    cPanel Access Level:
    Root Administrator
    Can you just reinstall the rpm or reinstall the port that provides the file? That should be the simplest.
     
  3. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Re-installing would seem the prudent approach. If you're running RedHat, run the following:

    rpm -qf /sbin/ifconfig

    This will tell you which RPM (net-tools) and version you should reinstall. Then try:

    up2date --get net-tools
    rpm -Uvh --force /var/spool/up2date/<file>.rpm

    Where <file> is the net-tools filename that now should exist in /var/spool/up2date/
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice