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?

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article