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?

  • In the desktop, too, user1 and also relogin? - andreymal
  • yes it is the only user pc he is admin - Pavel
  • but if I add another user, the situation is still the same, I can edit through the terminal on behalf of a specific user (re root), but if I start it from the desktop, then I can't - Pavel
  • on a specific issue - after changing the group membership, it is necessary to complete all the processes of this user. restarting the x-session does not always help here - some demons remain to work. on an unspoken question - this is actually a duplicate - aleksandr barakin

0