Portanto, supondo que você queira permitir que os usuários www-data
e netbeans
acessem /var/www/project
adicionando os dois ao grupo netbeans
:
# you might have done this already, but no harm will be done by
# executing these commands again:
groupadd netbeans
adduser www-data netbeans
adduser netbeans
# set the user 'www-data' and the group 'netbeans' as the owners
chown www-data:netbeans -R /var/www/project
# allow group members to read and write files
chmod g+rw -R /var/www/project