How to adjust the owner and owning group of the catalog file?

In the WEB server, if the file or directory permissions are incorrect, it will cause a 403 error when accessing the website. So we must first confirm the identity of the process that needs to operate these file directories. In linux, it can be queried through ps and grep.