Ubuntu 17.04 container, can't run service as another user

loki_racer

New Member
Jul 19, 2017
2
0
1
124
I've just started using proxmox and am still trying to understand most of what it has to offer.

My container is a Ubuntu 17.04 container. I have installed Resilio using this tutorial: help.resilio.com/hc/en-us/articles/206178924

However, it appears that Resilio runs by default as user rslsync. That user is having issues with file/folder permissions for some of the shared folders I need to manage via Resilio.

In that tutorial, there are steps to run the resilio service as another user.

==============================================
Enable sync service as current user:

edit file /usr/lib/systemd/user/resilio-sync.service and change "WantedBy=multi-user.target" to "WantedBy=default.target". Save. Then enable the service:

systemctl --user enable resilio-sync
===============================================

However, when I run "systemctl --user enable resilio-sync" I receive

root@CT101:/etc/resilio-sync# systemctl --user start resilio-sync
Failed to connect to bus: No such file or directory​

Is systemctl not a thing in Ubuntu containers?
 
Setting up dbus (1.10.6-1ubuntu3.3) ...
A reboot is required to replace the running dbus-daemon.
Please reboot the system when convenient.
Processing triggers for libc-bin (2.23-0ubuntu3) ...
root@CT101:/mnt/btsync#

===================================================

rebooted

===================================================

root@CT101:/# systemctl --user enable resilio-sync
Failed to connect to bus: No such file or directory
 
Last edited: