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

Wrong permissions on /tmp directory

Discussion in 'Plesk for Linux - 8.x and Older' started by Pagemakers, Apr 6, 2006.

  1. Pagemakers

    Pagemakers Silver Pleskian

    31
    80%
    Joined:
    Dec 19, 2007
    Messages:
    664
    Likes Received:
    7
    For some unknown reason after updating to v8 the permissions on our /tmp directory keep changing from 777 to 755.

    The is causing untold troubles for the server.

    Any ideas how to source the problem?
     
  2. Pagemakers

    Pagemakers Silver Pleskian

    31
    80%
    Joined:
    Dec 19, 2007
    Messages:
    664
    Likes Received:
    7
    This has been resolved. Our mistake!

    It may be interesting to note that everything was fine until I deleted a client and his respective domains.

    Crons that were due to run on that domain were not deleted and because they could not execute in a missing directory they would execute in / and this caused the problems.
     
  3. jchost

    jchost Guest

    0
     
    Thats why its stupid to cd into a dir within a script, if the dir does not exist, then the script will run its job on whatever dir its run in.

    Use pathnames for whatever commands you wanna work on, as they will fail if the directory does not exist.

    Easy enough way to hose your server if you're not careful.

    If you *MUST* cd into a dir, well, make the script exit out if the exit return code of cd is not 0.
     
Loading...