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

/root/.gdrive/ folde Permissions for PHP exec #88

Open
SalimF opened this issue Nov 3, 2023 · 0 comments
Open

/root/.gdrive/ folde Permissions for PHP exec #88

SalimF opened this issue Nov 3, 2023 · 0 comments

Comments

@SalimF
Copy link

SalimF commented Nov 3, 2023

I'm trying to execute file upload vial local (protected) PHP script, using exec() function..
I know I should not have permission on /root/.gdrive/ for PHP user (which is nginx).

Failed getting oauth client: Service account filename "/root/.gdrive/me.json" not found

and this is shell script I'm exciting

/usr/local/sbin/gdrive -c /root/.gdrive/ --service-account "me.json" upload $1 --share

I tried to create soft link for /root/.gdrive/ in my nginx (default home folder) /var/lib/nginx but I still get same error message

=Update=
I kinda solve it (I don't know if it is a safe solution or not) , bur I copied all my credential file to /var/lib/nginx/.gdrive and PHP now accepting it .

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

1 participant