• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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