1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

/etc/sw/keys/ permissions change after 50plesk-daily cronjob

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by wyn none, Oct 11, 2011.

  1. wyn none

    wyn none Guest

    0
     
    Hey All,

    I'm having some problems with the plesk daily maintenance cronjobs.
    Every night they same to mess up the permissions on my /etc/sw/keys folder for some reason.

    Does anyone have a clue what the script /usr/local/psa/admin/plib/DailyMaintainance/script.php does (beside messing up file permissions :)) The only thing i'm aware of that it runs the statistics, don't see how this is related.

    Plesk stops functioning every night because it will not read my plesk license.
    When i correct the permissions all is okay again.

    The permissions look as following after the script is executed (103 as groupid instead of swkey-data):
    drwxrws--- 7 psaadm 103 4.0K Oct 11 16:06 .
    drwxr-xr-x 3 root root 4.0K Oct 22 2010 ..
    drwxrws--- 2 psaadm swkey-data 4.0K Oct 6 10:10 backup
    -rw-r--r-- 1 psaadm swkey-data 22 Oct 11 09:23 info
    drwxrws--- 2 root swkey-data 4.0K Oct 22 2010 instances
    drwxrws--- 2 psaadm swkey-data 4.0K Oct 6 10:10 keys
    drwxrws--- 2 psaadm swkey-data 4.0K Oct 22 2010 lock
    -rw-rw---- 1 root 103 3.5K Oct 11 16:06 registry.xml
    drwxrws--- 2 psaadm swkey-data 4.0K Oct 22 2010 restart


    Best regards,

    Wyn
     
  2. wyn none

    wyn none Guest

    0
     
    Solved.

    The problem seems to be that somehow the permissions of the parent directory /etc/sw/keys seems to be copied over to the files in it at night. Settings the permissions back for the directory solved it.

    Best regards,

    Wyn
     
Loading...