Welcome! Log In Create A New Profile

Advanced

What directory & file permissions do you recommend?

Posted by edflecko 
What directory & file permissions do you recommend?
May 06, 2020 03:56PM
What directory and file permissions do you recommend for a basic website? At some point, I will be adding additional websites as subdirectories of the /etc/nginx/html path.

I'm installing Nginx 1.18.0 from source of a CentOS server.

My configure looks like:

./configure --prefix=/etc/nginx --modules-path=/etc/nginx/modules --user=nginx --group=nginx --with-http_ssl_module --with-http_stub_status_module --with-pcre --with-http_gunzip_module --with-http_gzip_static_module

After compilation, I run this command:
useradd --system --home /var/cache/nginx --shell /sbin/nologin --comment "nginx user" --user-group nginx

Note: I'm not sure if the command is correct as I don't have a /var/cache/nginx directory (?) and I'm not sure if the rest of the command syntax is correct?

Thank you,
Ed
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 102
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready