• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

Wrong permissions on /tmp directory

Pagemakers

Silver Pleskian
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?
 
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.
 
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.
 
Back
Top