• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

domain crontabs

F

faris

Guest
Can anybody tell me which user domain cron jobs run as? Logically it is as that particular user (e.g. if FTP username for domain.com is XXX, then the cron job would run as XXX, as this is the user that is listed on the page by default)

But how can that be, if such users don't have shell access?

And to confuse things even more, Help for the ctontab section says:

"Note: Plesk administrator can create the scheduled tasks that will be run on the server on behalf of user root. If you wish to restrict usage of the root account, create an empty file with name root.crontab.lock in the location /usr/local/psa/var/."

Does this mean the cron jobs are actually run as root, no matter what username is shown in the crontab drop-down? Surely not?

And if you create this file, then what? Exactly what does it stop?

Any info would be appreciated.

Faris.
 
Hi Faris,

When a FTP user is created for a domain, that means that ftp user is one of the server's user. Depends on the permission, that user might not have a shell access to the server, however, the user will be able to perform certain limited actions in the allowed area ( the vhost's directories).

I am not quite sure about running crontab as root, but as far as I know just choose the user in the list then you should be alright.
 
Thanks Sufia!

Ah. Yes. Of course, because they do own the files in the vhost directory after all. I shall experiment. Thanks!

Faris.
 
Back
Top