Find the answer to your Linux question:
Results 1 to 2 of 2
Recently I ordered a dedicated Linux server with Cent OS 5.2 freshly installed. Whilst trying to disable SELINUX I accidentally deleted it, doh! In SSH/Putty, when I run the command: ...
  1. #1
    Just Joined!
    Join Date
    Jun 2009
    Posts
    1

    Question Deleted SELINUX by accident....HELP!

    Recently I ordered a dedicated Linux server with Cent OS 5.2 freshly installed. Whilst trying to disable SELINUX I accidentally deleted it, doh!

    In SSH/Putty, when I run the command:

    Code:
    vi /etc/selinux/congig
    I get the message:

    Code:
    "/etc/selinux/config/" New Directory

    Can this be fixed quickly/easily? Or does Cent OS need to be re-installed?

    Is SELINUX (disabled) still needed on the server to install/run cPanel?

    Your help much appreciated!

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    You should be able to reinstall most of the components using the yum package manager. Login or su to root and execute the command
    Code:
    yum reinstall '*selinux*'
    If you don't want strict policy enforcement, then do this also:
    Code:
    yum remove selinux-policy-strict
    Then you can enable selinux from the Administration -> Security Level and Firewall form. There is also the System -> SELinux Troubleshooter GUI application that can help you figure out what's not working right.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...