Wrong file owner cronjobs




















I don't want to make root own the file. CMCDragonkai sudo -u www-data crontab -e and add it to the www-data user's crontab. It'll then run as user www-data.

Remember to remove the explicit user column, since it doesn't exist in user crontabs. I was under the impression crontab tool would place the task somewhere else. CMCDragonkai You are correct, calling crontab -e is not what you want in this case.

I'm looking but haven't found a way to run a user crontab as a non-root user. Florian Heinle Florian Heinle 2, 18 18 silver badges 28 28 bronze badges. I had a dot into the link name. It was the culprit for my not-running jobs for me. Gianluigi Zane Zanettini. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Stack Gives Back Safety in numbers: crowdsourcing data on nefarious IP addresses.

Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Several environment variables are set up automatically by the cron 8 daemon. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more.

Asked 5 years, 7 months ago. Active 5 years, 7 months ago. Viewed 3k times. Improve this question. Add a comment. Active Oldest Votes. Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment. Linked pull requests. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window.



0コメント

  • 1000 / 1000