Bug#782134: systemctl TAB-completion for unit names does not work when not root

Stefano Zacchiroli zack at debian.org
Wed Apr 8 11:26:03 BST 2015


Package: systemd
Version: 215-14
Severity: minor

When as non root, I do this:

  $ systemctl start l<TAB>

I get this error:

  Failed to list units: Access denied

and TAB completion fail to complete. ("l" is just a sample prefix, TAB
completion for unit names doesn't work with any prefix, including the empty
one.)

OTOH it works fine as root.

After a brief discussion on #debian-devel, it seems that the above works for
others, using the same version of systemd. So it might be specific to my
system, but AFAICT I haven't customized systemd in any way, so I don't know
what might be causing it.

FWIW, my user is member of the following *nix groups:

  zack at timira:~$ id
  uid=1000(zack) gid=1000(zack) groups=1000(zack),4(adm),7(lp),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),33(www-data),34(backup),44(video),46(plugdev),103(netdev),109(bluetooth)

TIA,
Cheers.

-- Package-specific info:

-- System Information:
Debian Release: 8.0
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=it_IT.utf8, LC_CTYPE=it_IT.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages systemd depends on:
ii  acl             2.2.52-2
ii  adduser         3.113+nmu3
ii  initscripts     2.88dsf-58
ii  libacl1         2.2.52-2
ii  libaudit1       1:2.4-1+b1
ii  libblkid1       2.25.2-6
ii  libc6           2.19-17
ii  libcap2         1:2.24-8
ii  libcap2-bin     1:2.24-8
ii  libcryptsetup4  2:1.6.6-5
ii  libgcrypt20     1.6.3-2
ii  libkmod2        18-3
ii  liblzma5        5.1.1alpha+20120614-2+b3
ii  libpam0g        1.1.8-3.1
ii  libselinux1     2.3-2
ii  libsystemd0     215-14
ii  mount           2.25.2-6
ii  sysv-rc         2.88dsf-58
ii  udev            215-14
ii  util-linux      2.25.2-6

Versions of packages systemd recommends:
ii  dbus            1.8.16-1
ii  libpam-systemd  215-14

Versions of packages systemd suggests:
ii  systemd-ui  3-2

-- no debconf information



More information about the Pkg-systemd-maintainers mailing list