From this user on fresh installation impossible run any command in terminal.
[user@s1 public_html]$ bin/magento c:f Class Magento\Framework\App\ResourceConnection\Proxy does not exist [user@s1 public_html]$
When I try delete example generated folder
[user@s1 public_html]$ [fsgroup@s1 public_html]$ rm -rf generated [user@s1 public_html]$ rm: cannot remove 'generated/.htaccess': Permission denied
When I try add privileges to files/folders:
chown -R www-data:www-data /var/www/magento2/ chmod 777 -R var chmod 777 -R generated chmod 777 -R app/etc
also return this user not have privileges to use this command. How to solve issue and how to give privileges to user?