• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Cronjob File Permissions Query

D

DirtyMonkey

Guest
When running a Cronjob for a specific domain, what file permissions/ownership should be set for the Cronjob/Plesk to function correctly?

I am currently using Ubuntu 6.06 LTS, so for example default user/group permissions might be = root/root

Say for instance the domain is:

'mydomain.com' in Plesk/Virtuozzo this user will exists as 'mydomain'

What user/group should be set for the 'cronjob.php' file in order for the Plesk GUI 'Crontab' to have permissions to execute said file.


Thanks in advance DM.
 
The cronjob created via Plesk will be executed as user which you have chose during task creation.
So you need that executed script has 'read' and 'execute' permissions granted for the user.
For example, if the script is placed inside httpdocs folder and if the ftp user name is mydomain the script can have mydomain : psacln ownership and 700 permissions set.
 
Back
Top