<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - status=217/USER for service with dash in USER"
href="https://bugs.freedesktop.org/show_bug.cgi?id=71578#c5">Comment # 5</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - status=217/USER for service with dash in USER"
href="https://bugs.freedesktop.org/show_bug.cgi?id=71578">bug 71578</a>
from <span class="vcard"><a class="email" href="mailto:zbyszek@in.waw.pl" title="Zbigniew Jedrzejewski-Szmek <zbyszek@in.waw.pl>"> <span class="fn">Zbigniew Jedrzejewski-Szmek</span></a>
</span></b>
<pre>(In reply to Sergey Zolotorev from <a href="show_bug.cgi?id=71578#c4">comment #4</a>)
<span class="quote">> It looks like you can not create user "foo.bar" anymore... But now you (with
> systemd) you can not create use user "foo-bar" too. =)</span >
For the sake of people who stumble upon this bug report:
tl;dr: There's no problem with using a user name with a dash.
When specified directly (e.g. User=test-user) there's no issue.
When specifying the name as the instance argument, User=%i must be used, and
User=%I does not work because dashes are "unescaped" to slashes (as was
explained in <a href="https://bugs.archlinux.org/task/37755">https://bugs.archlinux.org/task/37755</a>).</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>