Error: Permission denied (os error 13) When I want to run a program is in system path

I am using meilisearch for a php/laravel project.

I want to add it to one of the directories are in system path to access faster to that.

so I put meilisearch program file in /usr/local/bin directory.

after that I set permission of that file like below:

sudo chmod 777 meilisearch

sudo chown farhad:www-data meilisearch

But the problem is:

When I call meilisearch command from the directories belongs to farhad user the is no problem. but when is call this command in the directory e.g. /usr/local I got this error:

Error: Permission denied (os error 13)

Can anyone help me to fix the problem?

Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like