Bash: bin/magento: Permission denied

Hi guys,

How are you doing? Having some issue on my Magento store recently got denied of permission via Magento user. I was trying to use command

sudo chown -R magento:www-data /var/www/html/

to reset the ownership but the result was the same.

Tips: Tried to add another new user for Magento folder and give permission like before, unfortunately nothing changes.

Reason what I guess: Used root executing commands in Magento folder?

For now, using Magento user executing commands we got:

  1. -bash: bin/magento: Permission denied
  2. magento is not in the sudoers file

This tip helps me through How to diagnose and fix Ownerships and Permission issues - Magento 2 Video Tutorials / Beginner Tutorials - Magento 2 Beginner Tutorials, Reviews and Discussions (digitalstartup.co.uk) already fixed and keep watching for the next topic.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.