linux give user permissions to folder with chown code example Example: debian give write permission sudo chmod -R 757 /var/www