Package: tor
Version: 0.2.9.11-1~deb9u1
Severity: normal
Tags: upstream

Dear Maintainer,

it seems that when using Tor multi-instance systemd service, the
username of an instance defaults to _tor-<instance-name>. This is
hardcoded in the systemd unit tor@.service as follows:

ExecStartPre=/usr/bin/install -Z -m 02755 -o _tor-%i -g _tor-%i -d
/var/run/tor-instances/%i

However, the default username policy for adduser (/etc/adduser.conf)
forbids usernames to start with an underscore. One could use useradd
instead, but in my specific case I'm using saltstack, which fails to
create the user. 

Also, starting usernames with an underscore seems quite unusual.

Thank you for considering this.
Regards, Sven.

-- System Information:
Debian Release: 9.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages tor depends on:
ii  adduser              3.115
ii  init-system-helpers  1.48
ii  libc6                2.24-11+deb9u1
ii  libevent-2.0-5       2.0.21-stable-3
ii  libseccomp2          2.3.1-2.1
ii  libssl1.1            1.1.0f-3
ii  libsystemd0          232-25+deb9u1
ii  lsb-base             9.20161125
ii  zlib1g               1:1.2.8.dfsg-5

Versions of packages tor recommends:
ii  logrotate    3.11.0-0.1
ii  tor-geoipdb  0.2.9.11-1~deb9u1
ii  torsocks     2.2.0-1

Versions of packages tor suggests:
pn  apparmor-utils       <none>
pn  mixmaster            <none>
pn  obfs4proxy           <none>
pn  obfsproxy            <none>
pn  socat                <none>
ii  tor-arm              1.4.5.0-1.1
pn  torbrowser-launcher  <none>

-- no debconf information

Reply via email to