Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    cem
    cem is offline
    Member
    Join Date
    Feb 2004
    Posts
    15

    Default Permissions changing

    Hello,

    We are working on a script which has a feature to automatically create an email on the server. However to do this the script has to edit files on the server which are controlled by cPanel. The files that are controlled and should be edited are located in /home/user/etc/site.com

    We have to change permissions of this directory (/home/user/etc/site.com) to be able to edit the files, however everytime we change the permission from 755 to 777 cPanel changes is back to its original a day later.

    Can anyone confirm that cPanel is changing the permission? if so..
    Does anyone know which cPanel file is doing this permission change?
    Would it be against cPanel's policy to change this, so it will stop doing it?


    Thank you in advance for any help.

    Kind regards,

    Cem

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    I presume this isn't in a shared hosting environment then as chmod 777 that directory will basically allow any user access to the other users accounts without restriction.

    It's probably being set by /scripts/mailperm or /scripts/upcp itself.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    cem
    cem is offline
    Member
    Join Date
    Feb 2004
    Posts
    15

    Default

    do you mean they will have access to everyones account if they have shell access? or also with ftp access?
    will they have access only to /home/$user/etc/$site.com ?

    thank you for the reply btw

  4. #4
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    They won't have access via FTP as that uses a chroot mechansims to stay within their site, but if they have shell access they'll be able to navigate into /home/$user/etc/$site.com, they'll also be able to do that using a perl CGI script too. You can restrict php somewhat to stay within a directory tree, but as has been shown recently, that restriction seems quite vulnerable.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

Similar Threads & Tags
Similar threads

  1. Changing public_html permissions
    By nerdzoll in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-07-2010, 09:02 PM
  2. Something changing file permissions
    By mambovince in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-18-2009, 09:50 PM
  3. changing permissions
    By George5 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-07-2009, 02:01 PM
  4. Changing permissions re images?????
    By swanny7 in forum New User Questions
    Replies: 0
    Last Post: 06-28-2007, 04:51 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube