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.

backup problem - file permission issue

Discussion in 'General Discussion' started by newbies, May 2, 2009.

  1. newbies

    newbies Active Member

    Joined:
    Jul 9, 2004
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    Hi all,

    I have openX ad server installed. cPanel returns errors while backing up an account which uses openX. The message is:
    The backup of xxxx's account encountered errors
    Please check /usr/local/cpanel/logs/error_log and /usr/local/cpanel/logs/cpbackup/1241251201.log for more information.

    The log says:
    Copying homedir..../bin/gtar: ./public_html/openX/var/cache/deliverycache_bdfd17ba8652cda10cac08fac1e60be7.php: Cannot open: Permission denied

    When I look at the file, it has the permission of 600, and belongs to nobody:nobody.

    openX guys say this is a cPanel issue. I am wondering why cpanel has such permission issue while it is running as root.

    Thank you for your help.
     
  2. Lyttek

    Lyttek Well-Known Member

    Joined:
    Jan 2, 2004
    Messages:
    770
    Likes Received:
    3
    Trophy Points:
    18
  3. PlatinumServerM

    PlatinumServerM Well-Known Member
    PartnerNOC

    Joined:
    Jul 10, 2005
    Messages:
    397
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    New Jersey, USA
    cPanel Access Level:
    Root Administrator
    You will have to change the ownership to the actual user of the account. You will also have to change the permissions accordingly and/or use suexec to work securely with your requirements.
     
  4. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    The ownership isn't the primary issue, it is that the file permissions are 0600, which means the user cannot read the file. Without the ability to read the file, the back process, which is run as the user, cannot backup the file.
     
  5. Gigabit

    Gigabit Member

    Joined:
    Jul 11, 2007
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    So, how to fix this with all accounts where permissions have changed. I have not changed any permissions within accounts, and now when my backup runs, I get the same errors.

    Is there a ssh command to change all accounts permissions so the backup will operate like it used to before a cPanel Update was performed.
     
  6. Gigabit

    Gigabit Member

    Joined:
    Jul 11, 2007
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    This is actually upsetting to me as cPanel knows about this issue and it hasn't been fixed yet. It HAS to be a cPanel issue, or all of these people wouldn't be posting about this.

    It has been almost 2 weeks now that I haven't gotten a complete backup done, and going on 3 days of no answer in this thread.

    Also it has been a few days since the last reply from my cPanel license distributor.

    What now?
     
  7. canfone

    canfone Active Member

    Joined:
    Aug 15, 2003
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Montreal
    cPanel please find a work around to this

    This issue related to

    /bin/gtar: Cannot open: Permission denied

    is a major issue for us. We manage over 20 cPanel servers and this is causing problems on backups for any sites generating session files or temporary files. There must be some work around or way that this can be resolved without resorting to switching all servers to suPHP?
     
  8. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Session and temporary files can be ignored. Add them to either the accounts cpbackup-exclude.conf file or the global exclude file.

    Some info on this: CpbackupExclude < Archive/WHMDocs < TWiki
     
  9. canfone

    canfone Active Member

    Joined:
    Aug 15, 2003
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Montreal
    that helps

    excellent - that helps.

    However, we are having some issues with users that upload using php saved as nobody with 600 permissions.

    Does anyone know if there is a default php umask for uploads or if this means that all users scripts have to modified with chmod function from within php OR all servers have to be changed to suPHP.

    At the very least, I think it should be reasonable that the backup script should continue through the rest of a site if a few files fail because of permission issues OR maybe there would be some way to run the backup script under root so that we don't have this troublesome issue.
     
Loading...

Share This Page