I set up a local server and ran into a problem, text editors do not have enough permissions to edit files.
The desired directory is located at / var / www / test Added owner and group to this directory
chown www-data: -R /var/www/test chmod u=rwx,g=rwx,o=rx -R /var/www/test
Then I add user1 to the www-data groups and login to the shell under this user.
If I try to edit any file in the / var / www / test directory via the terminal, everything works fine.
If I run a text editor from the desktop, for example, and again I try to edit these files, then I get an error "access denied"
Why it happens?