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.

Disable Compilers After UPCP

Discussion in 'General Discussion' started by Solokron, Jul 31, 2007.

  1. Solokron

    Solokron Well-Known Member

    Joined:
    Aug 8, 2003
    Messages:
    849
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Seattle
    cPanel Access Level:
    DataCenter Provider
    I have a problem with the tweak settings disable compilers being re-enabled for unprivileged users after upcps. Is there a command line besides the usual chmods to re-run this script after a upcp?
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    upcp itself probably isn't enabling them, it's the OS vendor updates that will change the permissions if a package is updated.

    You should be able to create /scripts/postupcp and add:

    #!/bin/sh
    /scripts/compilers off


    then chmod 700 the script.
     
  3. Solokron

    Solokron Well-Known Member

    Joined:
    Aug 8, 2003
    Messages:
    849
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Seattle
    cPanel Access Level:
    DataCenter Provider
    Simple enough. You're the best Chirpy!
     
  4. MaraBlue

    MaraBlue Well-Known Member

    Joined:
    May 3, 2005
    Messages:
    335
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Carmichael, CA
    cPanel Access Level:
    Root Administrator
    Thank you for that! I needed it for something else.
     
Loading...

Share This Page