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.

How do I prevent permission 777

Discussion in 'General Discussion' started by Peoplespaces, Mar 30, 2008.

  1. Peoplespaces

    Peoplespaces Well-Known Member

    Joined:
    Oct 1, 2001
    Messages:
    217
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    I would like to know how to prevent directory permissions changes by users to 777. I have had a few spammers get on different servers when a user knowlingly or unwittingly changes file/folder permissions to 777. Is there any way to prevent this change server wide?
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Note, in SuExec and SuPHP environments, scripts with global write permissions (such as 777) are not permitted to run. This generally curbs users from blindly changing permissions to 777 but may increase your support load. Additionally, some scripts or script add-ons are not yet built with Su environments in mind, thus may break by setting permissions to 777 as they assume a user nobody environment.

    However, I admit, they will not prevent files that aren't PHP and/or CGI scripts from be switched to global write.
     
  3. Peoplespaces

    Peoplespaces Well-Known Member

    Joined:
    Oct 1, 2001
    Messages:
    217
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Actually what has happened is that some newbie designer changed the directory permissions to 777 and allowed all sorts of crap to be placed in there. Is there not some way to prevent directory permissions from being changed to 777?
     
  4. Peoplespaces

    Peoplespaces Well-Known Member

    Joined:
    Oct 1, 2001
    Messages:
    217
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    I believe that what is causing this problem is that when anyone does an upgrade on a Fantastico installation of Mambo or SMF forum, the upgrade changed the directory permissions to 777.

    Now, I recognize that this is not a cPanel problem, but I am sending this as a heads up notice to anyone else using Fantastico on a none phpsuexec server.
     
Loading...

Share This Page