On Fri, Aug 10, 2018 at 5:12 PM, Goran <sendmailtogo...@gmail.com> wrote:
> Your test-asuser.service works as intended. If I change the user and
> group to grafana it shows the same problems.
> # id grafana
> uid=207(grafana) gid=207(grafana) groups=207(grafana)
> # cat /etc/passwd
> cat /etc/group
Hmm ... not sure what happens. Probably /var/lib/grafana doesn't exist?
Unless you got help from somebody more familiar with systemd, I'd just do
one of these:
- start as root in the systemd unit, then use runasuser/su (this already
- delete (preserving its files), recreate the user (possibly using "useradd
-m" to create a "normal" user with /home directory, just in case), and
chown grafana's files afterwards.
lxc-users mailing list