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

loki_racer

New Member
Jul 19, 2017
2
0
1
122
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:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!