That's probably a question better left for a nginx user group or forum. However, general best practices for any service is that it is files/directories are owned and run by a service account not associated with any actual user or other service. This is so if the service is ever compromised, it's only giving the attacker or malware the same permissions as the exploited service, and protects the rest of your OS users and services.
On Thu, Aug 15, 2019, 08:14 fugee ohu <[email protected]> wrote: > I've always kept websites under my own user name Now I'm reading their > directories and files should be owned by whatever user nginx is running as > Which is it? > > -- > -- > You received this message because you are subscribed to the Linux Users > Group. > To post a message, send email to [email protected] > To unsubscribe, send email to [email protected] > For more options, visit our group at > http://groups.google.com/group/linuxusersgroup > References can be found at: http://goo.gl/anqri > Please remember to abide by our list rules (http://tinyurl.com/LUG-Rules) > --- > You received this message because you are subscribed to the Google Groups > "Linux Users Group" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/linuxusersgroup/40137317-eead-4839-afd4-e993ad0237b7%40googlegroups.com > <https://groups.google.com/d/msgid/linuxusersgroup/40137317-eead-4839-afd4-e993ad0237b7%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- -- You received this message because you are subscribed to the Linux Users Group. To post a message, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit our group at http://groups.google.com/group/linuxusersgroup References can be found at: http://goo.gl/anqri Please remember to abide by our list rules (http://tinyurl.com/LUG-Rules) --- You received this message because you are subscribed to the Google Groups "Linux Users Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/linuxusersgroup/CAN%2Braev0v1ir_0mQEsf5EPp7XZG9BtanDuKxdYL1S3FpNpCvCw%40mail.gmail.com.
