-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run CLI script as specific user #4
Comments
Hi @exodus4d
This is not correct. This depends on who is calling the script:
In your case, I think you can solve your issue by:
So if you're logged as root (which seems to be your case): crontab -r
crontab -u www mycrontab Replace |
I've added a block about user permissions in the docs. |
Thanks for the quick response! :) |
Thanks for the script!
The Cron scripts are executed with user "root". This is fine in most cases....
It looks like F3 stores all cached files in /tmp/cache/ with owner/group
root:root
. Any other cached files (non cronjob cache) have the web server user as owner (e.g.nginx:nginx
orwww:www
,...).The
$f3->clear('CACHE');
can not delete this files fromroot:root
when triggered by a user.Can we add a configurable default user for all CLI
exec();
calls? Something like this: http://serverfault.com/a/453823`
The text was updated successfully, but these errors were encountered: