From: kremlin Date: Tue, 22 Jul 2014 21:41:27 +0000 (-0500) Subject: update service files to run with root permissions X-Git-Url: https://uglyman.kremlin.cc/gitweb/gitweb.cgi?a=commitdiff_plain;h=d4ad7f526a24d3e0ec4de56cb6f96f4611250f32;p=systembsd.git update service files to run with root permissions root is needed for gethostname(3), setlocale(3), setting system time, and handling login enviornments. --- diff --git a/conf/service-files/org.freedesktop.hostname1.service b/conf/service-files/org.freedesktop.hostname1.service index c02d3c4..4ab56a7 100644 --- a/conf/service-files/org.freedesktop.hostname1.service +++ b/conf/service-files/org.freedesktop.hostname1.service @@ -1,3 +1,4 @@ [D-BUS Service] -Names=org.freedesktop.hostname1 +Names=org.freedesktop.hostname1i Exec=/usr/local/bin/systemd-compat/systemd-hostnamed +User=root diff --git a/conf/service-files/org.freedesktop.locale1.service b/conf/service-files/org.freedesktop.locale1.service index 22cd8c1..b85f8b9 100644 --- a/conf/service-files/org.freedesktop.locale1.service +++ b/conf/service-files/org.freedesktop.locale1.service @@ -1,3 +1,4 @@ [D-BUS Service] Names=org.freedesktop.locale1 Exec=/usr/local/bin/systemd-compat/systemd-localed +User=root diff --git a/conf/service-files/org.freedesktop.login1.service b/conf/service-files/org.freedesktop.login1.service index ec47461..834f17b 100644 --- a/conf/service-files/org.freedesktop.login1.service +++ b/conf/service-files/org.freedesktop.login1.service @@ -1,3 +1,4 @@ [D-BUS Service] Names=org.freedesktop.login1 Exec=/usr/local/bin/systemd-compat/systemd-logind +User=root diff --git a/conf/service-files/org.freedesktop.timedate1.service b/conf/service-files/org.freedesktop.timedate1.service index f757f4a..096d622 100644 --- a/conf/service-files/org.freedesktop.timedate1.service +++ b/conf/service-files/org.freedesktop.timedate1.service @@ -1,3 +1,4 @@ [D-BUS Service] Names=org.freedesktop.timedate1 Exec=/usr/local/bin/systemd-compat/systemd-timedated +User=root