[Buildroot] [PATCH] lighttpd: run as non-privileged user www-data
Floris Bos
bos at je-eigen-domein.nl
Thu Apr 30 16:12:16 UTC 2015
Previously the stock lighttpd configuration was patched to run as user root,
because we do not have a lighttpd user.
Patch it to use www-data instead, which is a user available in the default
skeleton, and is the same other webserver packages (like nginx) use.
Signed-off-by: Floris Bos <bos at je-eigen-domein.nl>
---
package/lighttpd/0001-Fix-default-config-file.patch | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/package/lighttpd/0001-Fix-default-config-file.patch b/package/lighttpd/0001-Fix-default-config-file.patch
index 88d2c6f..bffc2a8 100644
--- a/package/lighttpd/0001-Fix-default-config-file.patch
+++ b/package/lighttpd/0001-Fix-default-config-file.patch
@@ -51,8 +51,8 @@ diff -Nurp a/doc/config/lighttpd.conf b/doc/config/lighttpd.conf
##
-server.username = "lighttpd"
-server.groupname = "lighttpd"
-+# server.username = "lighttpd"
-+# server.groupname = "lighttpd"
++server.username = "www-data"
++server.groupname = "www-data"
##
## enable core files.
--
2.1.4
More information about the buildroot
mailing list