mindemon
Forum Replies Created
-
Thank you very much for that useful information
although the cronjob line is not identical to mine it does share the same time where it supposed to execute the job, I’m starting to think some of our DEV’s did write this and didn’t think about the consequences of using root
will have to do an investigation
again, many many thanks!
login as root user or any user which have the sudo privileges and type
crontab -e
add this line to your cronjob
0 0 1 * * /usr/bin/chown -R nginx:nginx /path/to/your/root/
save and exit
this tells cron to perform chown for the root directory at every start of the month on 00:00 midnight
Hope this helps!
- This reply was modified 5 years, 10 months ago by mindemon.
Unfortunately no. but using the cron solution keeps fine for now.
nevertheless, none of the solutions works for me either
Hey,
Thanks for the fast reply
The Permissions are set to 775 which I think is not good correct me if I’m wrong.
and yes I am using Nginx webserver not apache though looking in htop I can see that the Nginx master process is run under root is that okay?
Thanks!