The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    1
    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:
    16
    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,475
    Likes Received:
    20
    Trophy Points:
    38
    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/
     
Loading...

Share This Page