ls -l /var/www
sudo groupadd www
sudo usermod -a -G www user-name
// logout and login
to check group : groups
sudo chown -R root:www /var/www
[ec2-user ~]$
sudo chmod 2775 /var/www
[ec2-user ~]$
find /var/www -type d -exec sudo chmod 2775 {} +
sudo groupadd www
sudo usermod -a -G www user-name
// logout and login
to check group : groups
sudo chown -R root:www /var/www
[ec2-user ~]$
sudo chmod 2775 /var/www
[ec2-user ~]$
find /var/www -type d -exec sudo chmod 2775 {} +