Re: systemd autocompletion does not work
Michael Biebl <biebl@debian.org> writes:
> Am 27.07.2017 um 19:09 schrieb Kamil Jońca:
>>
>> 1. Box with debian sid, updated frequently
>> 2. Recently I realized that completion of systemd units does not work,
>> ie.
>> $sudo systemd restart <TAB> gives me "@" sign only.
>> I noticed that, at the moment of pressing tab I got in /var/log/auth.log
>> --8<---------------cut here---------------start------------->8---
>> 2017-07-27T19:01:37.228534+02:00 alfa dbus[685]: [system] Rejected
>> send message, 4 matched rules; type="method_call", sender=":1.507"
>> (uid=1000 pid=10335 comm="systemctl --full --no-legend --no-pager
>> list-unit-") interface="org.freedesktop.systemd1.Manager"
>> member="ListUnitFilesByPatterns" error name="(unset)"
>> requested_reply="0" destination="org.freedesktop.systemd1" (uid=0
>> pid=1 comm="/sbin/init ")
>
> Can you provide the systemd and dbus version and the output of
> ls -la /etc/dbus-1/system.d/ /usr/share/dbus-1/system.d/
$dpkg -l systemd dbus
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-====================================-=======================-=======================-=============================================================================
ii dbus 1.10.20-1 amd64 simple interprocess messaging system (daemon and utilities)
ii systemd 234-2 amd64 system and service manager
$ls -la /etc/dbus-1/system.d/ /usr/share/dbus-1/system.d/
/etc/dbus-1/system.d/:
total 36
drwxr-xr-x 2 root root 4096 Jul 27 19:11 .
drwxr-xr-x 4 root root 4096 Jul 2 07:19 ..
-rw-r--r-- 1 root root 1144 Dec 9 2014 avahi-dbus.conf
-rw-r--r-- 1 root root 1630 Aug 18 2015 bluetooth.conf
-rw-r--r-- 1 root root 1569 Jun 5 2014 org.freedesktop.ColorManager.conf
-rw-r--r-- 1 root root 632 May 22 2014 org.freedesktop.PolicyKit1.conf
-rw-r--r-- 1 root root 1075 Nov 16 2014 org.freedesktop.RealtimeKit1.conf
-rw-r--r-- 1 root root 3947 Apr 29 2014 org.freedesktop.systemd-shim.conf
-rw-r--r-- 1 root root 1084 Apr 27 2015 pulseaudio-system.conf
/usr/share/dbus-1/system.d/:
total 60
drwxr-xr-x 2 root root 4096 Jul 22 11:17 .
drwxr-xr-x 6 root root 4096 Jul 2 07:18 ..
-rw-r--r-- 1 root root 947 Jul 12 16:01 org.freedesktop.hostname1.conf
-rw-r--r-- 1 root root 937 Jul 12 16:01 org.freedesktop.locale1.conf
-rw-r--r-- 1 root root 12499 Jul 12 16:01 org.freedesktop.login1.conf
-rw-r--r-- 1 root root 1604 Jul 12 16:01 org.freedesktop.network1.conf
-rw-r--r-- 1 root root 953 Jul 12 16:01 org.freedesktop.resolve1.conf
-rw-r--r-- 1 root root 12654 Jul 12 16:01 org.freedesktop.systemd1.conf
-rw-r--r-- 1 root root 947 Jul 12 16:01 org.freedesktop.timedate1.conf
KJ
--
http://wolnelektury.pl/wesprzyj/teraz/
It is the wise bird who builds his nest in a tree.
Reply to: