Service: use user textsecure-cli

This commit is contained in:
AsamK 2015-12-31 15:21:44 +01:00
parent df0ae3b8dd
commit 506bc5df13
3 changed files with 3 additions and 3 deletions

View file

@ -57,7 +57,7 @@ For dbus support you need jni/unix-java.so installed on your system (Debian: lib
### System bus
To run on the system bus you need to take some additional steps.
Its advisable to run textsecure-cli as a separate unix user, the following steps assume you created a user named *textsecure*.
Its advisable to run textsecure-cli as a separate unix user, the following steps assume you created a user named *textsecure-cli*.
These steps, executed as root, should work on all distributions using systemd.
```bash

View file

@ -3,7 +3,7 @@
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
<policy user="textsecure">
<policy user="textsecure-cli">
<allow own="org.asamk.TextSecure"/>
<allow send_destination="org.asamk.TextSecure"/>
<allow receive_sender="org.asamk.TextSecure"/>

View file

@ -4,7 +4,7 @@ Description=Send secure messages to TextSecure/Signal clients
[Service]
Type=dbus
ExecStart=%dir%/bin/textsecure-cli -u %number% daemon --system
User=textsecure
User=textsecure-cli
BusName=org.asamk.TextSecure
[Install]