summaryrefslogtreecommitdiff
path: root/net-analyzer/vnstat/files/vnstat-2.2-drop-root.patch
blob: 2ed3ec1404a496aa6b39d8b547dcafa56c469c95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- a/cfg/vnstat.conf
+++ b/cfg/vnstat.conf
@@ -69,10 +69,10 @@
 ##
 
 # switch to given user when started as root (leave empty to disable)
-DaemonUser ""
+DaemonUser "vnstat"
 
 # switch to given group when started as root (leave empty to disable)
-DaemonGroup ""
+DaemonGroup "vnstat"
 
 # try to detect interface maximum bandwidth, 0 = disable feature
 # MaxBandwidth will be used as fallback value when enabled