Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 14 of 14
  1. #1
    Member
    Join Date
    Jan 2002
    Posts
    98

    Default How to stop permission change for /home/user/etc/?

    I have a large client who has started having problems. For over a year he has had a config.inc.php file in the /home/user/etc/ directory. For the past couple of days, the permissions on that directory have gotten changed from 755. His website stops working. I think Cpanel is changing the permissions each night.

    Would chattr +i /home/user/etc/ take care of it? (substitute in for the user)

    cPanel.net Support Ticket Number:

  2. #2
    Member
    Join Date
    Feb 2003
    Location
    Sachse, TX
    Posts
    567

    Default Re: How to stop permission change for /home/user/etc/?

    Originally posted by Lamar
    I have a large client who has started having problems. For over a year he has had a config.inc.php file in the /home/user/etc/ directory. For the past couple of days, the permissions on that directory have gotten changed from 755. His website stops working. I think Cpanel is changing the permissions each night.

    Would chattr +i /home/user/etc/ take care of it? (substitute in for the user)

    cPanel.net Support Ticket Number:
    Cpanel doesn't change permissions inside those directories. If you have Mandrake, it could be the msec doing it.

    Or maybe RH has something spiffy doing that kind of check.. I am not even sure what you are running so...

    cPanel.net Support Ticket Number:

  3. #3
    Member
    Join Date
    Jan 2002
    Posts
    98

    Default

    Hi Taz-

    I'm running RedHat 7.3. This has never happened before in the past year.

    cPanel.net Support Ticket Number:

  4. #4
    Member
    Join Date
    Jan 2002
    Posts
    98

    Default

    This started at the same time as the upgrade to Cpanel 7.x for Stable.

    He needs the permissions to be 755 (as they have been for over a year), but it keeps getting changed to 750.

    cPanel.net Support Ticket Number:

  5. #5
    Member
    Join Date
    Jul 2003
    Posts
    6

    Default

    No idea what is causing it, but you could set a cron script to change the permissions back every so often until you figure it out.

    cPanel.net Support Ticket Number:

  6. #6
    Member
    Join Date
    Jun 2003
    Posts
    9

    Default

    I had this exact same problem. On top of that, any new accounts created would give a 403 Forbidden error unless I chmod'ed the public_html directory. I upgraded to the latest release of cpanel and the problem seems to be fixed.

    cPanel.net Support Ticket Number:

  7. #7
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    Wouldn't a chattr +i fix the problem no matter what the cause?

    cPanel.net Support Ticket Number:

  8. #8
    Member
    Join Date
    Jan 2002
    Posts
    98

    Default

    Originally posted by casey
    Wouldn't a chattr +i fix the problem no matter what the cause?

    cPanel.net Support Ticket Number:
    That's what I think, also. I gave it a try earlier today, and will know by tomorrow.

    cPanel.net Support Ticket Number:

  9. #9
    Member
    Join Date
    Jan 2002
    Posts
    98

    Default

    I was right, chattr +i /home/user/etc/ did resolve the issue.

    cPanel.net Support Ticket Number:

  10. #10
    Member
    Join Date
    Mar 2003
    Posts
    863

    Default Re: Re: How to stop permission change for /home/user/etc/?

    Originally posted by tAzMaNiAc
    Cpanel doesn't change permissions inside those directories. If you have Mandrake, it could be the msec doing it.

    Or maybe RH has something spiffy doing that kind of check.. I am not even sure what you are running so...

    cPanel.net Support Ticket Number:
    Yes it does. The updates to CPanel does and it also screws with file ownership as well otherwise how would you explain how we found 2 of our client usernames chown to 8 files in our cgi-bin. Just another bloody bug or two.

    cPanel.net Support Ticket Number:

  11. #11
    Member
    Join Date
    Aug 2002
    Posts
    62

    Default

    Cpanel creates, modifies and removes files in /home/$user/etc. This is where it keeps the shadow and passwd files for POP email accounts. The permissions are there to protect the files from being read. While Cpanel screws up the permissions anyway (another story and another problem), you should not set that directory to immutable, if the user ever plans on adding, editing or removing POP email accounts.

    cPanel.net Support Ticket Number:
    I'm Tim.

  12. #12
    Member
    Join Date
    Nov 2002
    Posts
    1,781
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default Re: How to stop permission change for /home/user/etc/?

    Originally posted by Lamar
    I have a large client who has started having problems. For over a year he has had a config.inc.php file in the /home/user/etc/ directory. For the past couple of days, the permissions on that directory have gotten changed from 755. His website stops working. I think Cpanel is changing the permissions each night.

    Would chattr +i /home/user/etc/ take care of it? (substitute in for the user)

    cPanel.net Support Ticket Number:
    The whole point of placing the file in that directory is wrong. Its a place where cpanel stores information about the user. Even if you want to place it in a directory in the /home/user, make a new one and place it there.

    My recommendations are don't use chattr +i inside that directory for any of the files.

    My 2 cents.

    cPanel.net Support Ticket Number:
    :: Anand ::

    ssh root@
    who the hell is root ???

    Cpanelappz Support Forums are up now. Register Today
    http://forums.cpanelappz.com

    WHM/cPanel API : http://whmapi.cpanelappz.com
    Cpanel Login Script : www.cpanelappz.com/cpanel-login-script.htm
    Exiscan+Clam+Exim Auto Installer : www.cpanelappz.com

  13. #13
    Member
    Join Date
    Jan 2002
    Posts
    98

    Default

    Tim and Anand-

    Thank you for your input. I do agree with you and passed these concerns to my client. I'm not sure why he chose that directory, but feel it was a bad decision.

    He is between a "rock and a hard place". Since he developed that website for one of his clients over a year ago, it has grown to a major revenue for him. He can't afford major changes that will cause down-time to the website, as he will lose his client. On the other hand, the site ceased to function after each cpanel update.

    As a temporary fix, I went ahead and did a chattr +i /home/user/etc/, explaining to him what was being sacrificed. However, I don't feel good about the decision to do this.

    I would really like to know why it did not affect anything for over a year, but suddenly started. I'm not upset about it. It's more curiosity, I suppose.

    cPanel.net Support Ticket Number:

  14. #14
    Member
    Join Date
    Aug 2002
    Posts
    62

    Default

    Originally posted by Lamar
    Tim and Anand-

    Thank you for your input. I do agree with you and passed these concerns to my client. I'm not sure why he chose that directory, but feel it was a bad decision.

    He is between a "rock and a hard place". Since he developed that website for one of his clients over a year ago, it has grown to a major revenue for him. He can't afford major changes that will cause down-time to the website, as he will lose his client. On the other hand, the site ceased to function after each cpanel update.

    As a temporary fix, I went ahead and did a chattr +i /home/user/etc/, explaining to him what was being sacrificed. However, I don't feel good about the decision to do this.

    I would really like to know why it did not affect anything for over a year, but suddenly started. I'm not upset about it. It's more curiosity, I suppose.

    cPanel.net Support Ticket Number:
    I'm not sure I understand how changing the path would result in a lot of effort or any downtime? If nothing else, you can use many tools on the server to make this change to any of the relevant files, or at home, even with search and replace with notepad, among others-assuming there are that many places. If it's used that many times, it should be ideally controlled from one global variable that can be changed in a configuration file, or at the top of one (or more) scripts, if need be. Anyway, good luck.

    cPanel.net Support Ticket Number:
    I'm Tim.

Similar Threads & Tags
Similar threads

  1. change session.save_path to /home/user/tmp and give permissions how?
    By sharmaine001 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-08-2011, 01:06 AM
  2. Replies: 2
    Last Post: 11-30-2009, 06:37 AM
  3. Initialize Quota - '/home/aquota.user': Permission denied' Errors?
    By wiszmaster in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-20-2008, 05:30 PM
  4. Could not create /home/user/mail/inbox: Permission denied
    By rviradia in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 03-25-2006, 06:49 PM
  5. how does one change a user's home directory
    By vmircea in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 05-08-2004, 02:57 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube