Tor: fix permission of /var/ipfire/tor/settings

The settings file must be writeable for group "nobody" so
users can change their Tor settings via WebUI. Since other
files in /var/ipfire/tor/ does not need this workaround, only
the settings file permissions are changed.

Sorry for the late fix; this was reported by various people
in the forum, too (I was unaware of so many Tor users in our
community).

Fixes #12117

Reported-by: Erik Kapfer <erik.kapfer@ipfire.org>
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
peter.mueller@ipfire.org 2019-09-07 17:52:00 +00:00 committed by Arne Fitzenreiter
parent a86febdc22
commit 9a0454cea2
2 changed files with 5 additions and 1 deletions

View File

@ -32,7 +32,7 @@ DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
PROG = tor
PAK_VER = 40
PAK_VER = 41
DEPS = "libseccomp"

View File

@ -38,4 +38,8 @@ restore_backup ${NAME}
# Adjust some folder permission for new UID/GID
chown -R tor:tor /var/lib/tor /var/ipfire/tor
# Tor settings file needs to be writeable by nobody group for WebUI
chown tor:nobody /var/ipfire/tor/settings
chmod 664 /var/ipfire/tor/settings
start_service --background ${NAME}