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.

Linux Environment Security (LES) – need your help, please

Discussion in 'Security' started by copernic2006, Sep 5, 2012.

  1. copernic2006

    copernic2006 Member

    Joined:
    Dec 7, 2010
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Hello,
    I want to install Linux Environment Security on my server (Linux Environment Security | R-fx Networks)
    For a good functioning with cpanel (during the automatic update of cpanel), it must be disabled before the update and reactivated once the update is complete,
    I want to create two files:
    1, /scripts/preupcp (to disable Linux Environment Security
    Code:
    #!/bin/sh
    /usr/local/sbin/les -da
    2, /scripts/postupcp (to reactivate Linux Environment Security)
    Code:
    #!/bin/sh
    /usr/local/sbin/les -ea 1
    Of course the two files have the necessary permissions****:
    chmod 0700 /scripts/postupcp
    chmod 0700 /scripts/preupcp

    Do you think that this method is correct and work without any problem?
    Thank you for your help.
     
Loading...

Share This Page