CHOWN and CHMOD
Date:
[6th Sep 2024]
Categories:
[linux],
[howto]
I often install, try and test new webservices like CMS, headless and static or something else on my Webserver. So I also often need to change permissions for the directories, but I alway forget. So here for heavensake are the two commands to grant permission to the www-data user (who owns the webserver) on an Linux System for a directory.
sudo chown -R www-data:www-data /var/www/website
sudo chmod -R 770 /var/www/website
You need to be SUDO and you need the password.
Thats all