* [Buildroot] [PATCH] lighttpd: run as non-privileged user www-data
@ 2015-04-30 16:12 Floris Bos
2015-05-01 8:02 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Floris Bos @ 2015-04-30 16:12 UTC (permalink / raw)
To: buildroot
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@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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] lighttpd: run as non-privileged user www-data
2015-04-30 16:12 [Buildroot] [PATCH] lighttpd: run as non-privileged user www-data Floris Bos
@ 2015-05-01 8:02 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2015-05-01 8:02 UTC (permalink / raw)
To: buildroot
Dear Floris Bos,
On Thu, 30 Apr 2015 18:12:16 +0200, Floris Bos wrote:
> 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@je-eigen-domein.nl>
> ---
> package/lighttpd/0001-Fix-default-config-file.patch | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Applied, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-05-01 8:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-30 16:12 [Buildroot] [PATCH] lighttpd: run as non-privileged user www-data Floris Bos
2015-05-01 8:02 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox