By default apache runs under user nobody. Is there a reason I would want to change that? Does it make things more secure?
|
feedback
|
|
No, there's really no reason to change that. Yes, it's for security. The idea is that you want to isolate the Apache processes as much as possible, so if the account running those processes were compromised, the attacker won't be able to easily do any damage to the server itself. For those reasons, | ||||
|
feedback
|
|
You would only give it its own user if you wanted Apache to be able to access files other user(s) cannot. For example, if you want the code behind your cgi or whatever to be a secret, you might make those files only owner readable and owned by the apache user. In this case, you would still want to make sure nobody can log in to your server with that username so you should take the necessary steps for that based on your operating system. | |||
|
feedback
|