Skip to content
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

sudo -u www-data /usr/bin/php xcat ClientDownload 这行命令运行时提示权限不足 #48

Closed
wietrade opened this issue Nov 9, 2023 · 1 comment

Comments

@wietrade
Copy link

wietrade commented Nov 9, 2023

root@li-Virtual-Machine:/home/li/www/haod# sudo -u www-data /usr/bin/php xcat ClientDownload
PHP Warning: require(/home/li/www/haod/app/predefine.php): Failed to open stream: Permission denied in /home/li/www/haod/xcat on line 8
PHP Fatal error: Uncaught Error: Failed opening required '/home/li/www/haod/app/predefine.php' (include_path='.:/usr/share/php') in /home/li/www/haod/xcat:8
Stack trace:
#0 {main}
thrown in /home/li/www/haod/xcat on line 8

@AutisticShark AutisticShark closed this as not planned Won't fix, can't repro, duplicate, stale Nov 10, 2023
@mocuishlelin
Copy link

需要整个目录属主改为 www-data:
chown -Rf www-data:www-data /home/li/www/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants