<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - status=217/USER for service with dash in USER"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=71578">71578</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>status=217/USER for service with dash in USER
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>major
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>sergey.zolotorev@gmail.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>general
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>systemd
          </td>
        </tr></table>
      <p>
        <div>
        <pre>systemd will not start any service for user which name contains dash ("-").
systemd will exit with status 217.

Reproduced on version 208-2.

Steps to reproduce:

1. Enable service for user (for example btsync-autoconfig or dropbox) for user
with dashes in name: systemctl enable <a href="mailto:dropbox@test-user.service">dropbox@test-user.service</a>
2. Try to start: systemctl start <a href="mailto:dropbox@test-user.service">dropbox@test-user.service</a>
3. See status: systemctl status <a href="mailto:dropbox@test-user.service">dropbox@test-user.service</a>

Status contains something like this:

<a href="mailto:dropbox@test-user.service">dropbox@test-user.service</a> - Dropbox
Loaded: loaded (/usr/lib/systemd/system/dropbox@.service; enabled)
Active: failed (Result: start-limit) since Ср 2013-11-13 13:38:26 MSK; 3s ago
Process: 16923 ExecStart=/usr/bin/dropboxd (code=exited, status=217/USER)
Main PID: 16923 (code=exited, status=217/USER)

For user "test" all works.</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>