<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Aug 10, 2018 at 5:12 PM, Goran <span dir="ltr"><<a href="mailto:sendmailtogoran@gmail.com" target="_blank">sendmailtogoran@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Your test-asuser.service works as intended. If I change the user and<br>
group to grafana it shows the same problems.<br>
<span class=""><br>
# id grafana<br>
uid=207(grafana) gid=207(grafana) groups=207(grafana)<br>
<br>
</span># cat /etc/passwd<br>
...<br>
grafana:x:207:207::/var/lib/<wbr>grafana:/sbin/nologin<br>
...<br>
<br>
cat /etc/group<br>
...<br>
grafana:x:207:<br>
...<br>
<br></blockquote><div><br></div><div>Hmm ... not sure what happens. Probably /var/lib/grafana doesn't exist?</div><div><br></div><div>Unless you got help from somebody more familiar with systemd, I'd just do one of these:</div><div>- start as root in the systemd unit, then use runasuser/su (this already works), or</div><div>- delete <span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">(preserving its files),</span> recreate the user (possibly using "useradd -m" to create a "normal" user with /home directory, just in case), and chown grafana's files afterwards.</div><div><br></div><div>-- </div><div>Fajar</div></div></div></div>