Skip to contentSkip to conversation

lighttpd: run as non-privileged user www-data

PATCH New Floris Bos 2 participants 2 messages Apr 30, 2015 – May 1, 2015

lore
Share & tools
lore

Floris Bos

author
#0 lore raw

PATCH 1/1 lighttpd: run as non-privileged user www-data

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.

---
 package/lighttpd/0001-Fix-default-config-file.patch | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
package/lighttpd/0001-Fix-default-config-file.patch +2 -2
index 88d2c6f..bffc2a8 100644
@@ -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.
Signature · 1 line
2.1.4
#1 lore raw

PATCH 1/1 lighttpd: run as non-privileged user www-data

Dear Floris Bos,

Quoted 9 lines · Floris Bos

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.

---
 package/lighttpd/0001-Fix-default-config-file.patch | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Applied, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com