312-49 · Question #276
On Linux/Unix based Web servers, what privilege should the daemon service be run under?
The correct answer is A. Something other than root. Following the principle of least privilege, web server daemon services should run as a non-root, unprivileged user (e.g., 'www-data', 'apache', or 'nginx'). Running a daemon as root is extremely dangerous - if the service is compromised, the attacker gains full root access to…
Question
On Linux/Unix based Web servers, what privilege should the daemon service be run under?
Options
- ASomething other than root
- BRoot
- CGuest
- DYou cannot determine what privilege runs the daemon service
How the community answered
(19 responses)- A89% (17)
- C5% (1)
- D5% (1)
Explanation
Following the principle of least privilege, web server daemon services should run as a non-root, unprivileged user (e.g., 'www-data', 'apache', or 'nginx'). Running a daemon as root is extremely dangerous - if the service is compromised, the attacker gains full root access to the system. Running under a restricted account limits the damage an attacker can do. This is a fundamental security best practice for all server-side daemon processes.
Topics
Community Discussion
No community discussion yet for this question.