I'm new on linux server.
I have 2 question that I'm confuse about this.
1 1. user:group now I chown my /var/www/html like this.
my nginx.conf is set server{ user www-data }
and in terminal I set
chown -R root:www-data /var/www/html find /var/www/html -type d -exec chmod 775 {} + find /var/www/html -type f -exec chmod 664 {} + find /var/www/html/uploads/images -type d -exec chmod 775 {} +
Is I'm do the right thing ? or it need to set to www-data:www-data ?
2 2. about crontab it a lot of TUT but it is not clear about user who ran crontab. The question is
If I login with adam user and my server is own by root:www-data or www-data:www-data how can I give the crontab to that user not adam user ? because it need perm to write the files like backup.