I use XFce4 desktop, started by by slim login manager. [I] xfce-base/xfce4-meta (4.14-r2@21.03.2020): The Xfce Desktop Environment (meta package) [I] x11-misc/slim (1.3.6-r5@23.03.2020): Simple Login Manager /etc/env.d/90xsession: XSESSION="Xfce4" After restoring system on new HDD I've find wrong behaviour of stop-multiple-users action. When I type poweroff command in DE menu with active root's session on TTY2, I see this user's confirmation for requested action. It is right. But poweroff action succeed on typing «Cancel» or even doing nothing. That is wrong and looks strange. messages log provides the following info: Mar 29 22:17:13 tux shutdown[18148]: shutting down for system halt Mar 29 22:17:14 tux init[1]: Switching to runlevel: 0 Mar 29 22:17:14 tux polkitd[3028]: Operator of unix-session:/org/freedesktop/ConsoleKit/Session1 FAILED to authenticate to gain authorization for action org.freedesktop.consolekit.system.stop-multiple-users for system-bus-name::1.5 [<unknown>] (owned by unix-user:tux) Mar 29 22:17:15 tux slim[2950]: pam_unix(slim:session): session closed for user tux Mar 29 22:17:15 tux polkitd[3028]: Unregistered Authentication Agent for unix-session:/org/freedesktop/ConsoleKit/Session1 (system bus name :1.10, object path /org/gnome/PolicyKit1/AuthenticationAgent, locale ru_RU.utf8) (disconnected from bus) Mar 29 22:17:15 tux init[1]: Trying to re-exec init Mar 29 22:17:16 tux start-stop-daemon[18208]: Will stop /usr/bin/slim Mar 29 22:17:16 tux start-stop-daemon[18209]: Will stop /usr/bin/slim Mar 29 22:17:16 tux start-stop-daemon[18209]: Will stop PID 2950 Mar 29 22:17:16 tux start-stop-daemon[18209]: Sending signal 15 to PID 2950 Mar 29 22:17:16 tux start-stop-daemon[18874]: Will stop /usr/sbin/ntpd Mar 29 22:17:16 tux start-stop-daemon[18874]: Will stop PID 2314 Mar 29 22:17:16 tux start-stop-daemon[18874]: Sending signal 15 to PID 2314 Mar 29 22:17:16 tux ntpd[2314]: ntpd exiting on signal 15 (Terminated) Mar 29 22:17:16 tux ntpd[2314]: 37.193.156.169 local addr 192.168.1.68 -> <null> Mar 29 22:17:16 tux ntpd[2314]: 37.187.5.167 local addr 192.168.1.68 -> <null> Mar 29 22:17:16 tux ntpd[2314]: 162.159.200.123 local addr 192.168.1.68 -> <null> Mar 29 22:17:16 tux ntpd[2314]: 207.180.204.206 local addr 192.168.1.68 -> <null> Mar 29 22:17:16 tux start-stop-daemon[18908]: Will stop /usr/bin/mpd Mar 29 22:17:16 tux start-stop-daemon[18908]: Will stop PID 2279 Mar 29 22:17:16 tux start-stop-daemon[18908]: Sending signal 15 to PID 2279 Mar 29 22:17:17 tux start-stop-daemon[18996]: Will stop /usr/bin/i2pd Mar 29 22:17:17 tux start-stop-daemon[18996]: Sending signal 15 to PID 2241 Mar 29 22:17:18 tux start-stop-daemon[19056]: Will stop /usr/bin/dnscrypt-proxy Mar 29 22:17:18 tux start-stop-daemon[19056]: Will stop PID 2171 Mar 29 22:17:18 tux start-stop-daemon[19056]: Sending signal 15 to PID 2171 Mar 29 22:17:18 tux start-stop-daemon[19148]: Will stop /usr/bin/dbus-daemon Mar 29 22:17:18 tux start-stop-daemon[19148]: Will stop PID 1853 Mar 29 22:17:18 tux start-stop-daemon[19148]: Sending signal 15 to PID 1853 Mar 29 22:17:18 tux polkitd[3028]: Lost the name org.freedesktop.PolicyKit1 - exiting Mar 29 22:17:18 tux start-stop-daemon[19178]: Will stop /usr/sbin/crond Mar 29 22:17:18 tux start-stop-daemon[19178]: Will stop PID 1821 Mar 29 22:17:18 tux start-stop-daemon[19178]: Sending signal 15 to PID 1821 Mar 29 22:17:18 tux crond[1821]: (CRON) INFO (Shutting down) Mar 29 22:17:18 tux start-stop-daemon[19212]: Will stop /usr/sbin/syslog-ng Mar 29 22:17:18 tux start-stop-daemon[19212]: Will stop PID 1791 Mar 29 22:17:18 tux syslog-ng[1791]: syslog-ng shutting down; version='3.22.1' Mar 29 22:17:18 tux start-stop-daemon[19212]: Sending signal 15 to PID 1791 $ equery u sys-auth/polkit … * Found these USE flags for sys-auth/polkit-0.115-r4: U I + + consolekit : Use sys-auth/consolekit for session tracking - - elogind : Use sys-auth/elogind for session tracking - - examples : Install examples, usually source code + + gtk : Add support for x11-libs/gtk+ (The GIMP Toolkit) + + introspection : Add support for GObject based introspection - - jit : Enable just-in-time compilation for improved performance. May prevent use of some PaX memory protection features in Gentoo Hardened. - - kde : Add support for software made by KDE, a free software community + + nls : Add Native Language Support (using gettext - GNU locale utilities) + + pam : Add support for PAM (Pluggable Authentication Modules) - DANGEROUS to arbitrarily flip - - systemd : Use sys-apps/systemd for session tracking - - test : Enable dependencies and/or preparations necessary to run tests (usually controlled by FEATURES=test but can be toggled independently) $ einfo Portage 2.3.89 (python 3.6.10-final-0, default/linux/amd64/17.1, gcc-9.2.0, glibc-2.29-r7, 4.19.97-gentoo-2 x86_64) ================================================================= System uname: Linux-4.19.97-gentoo-2-x86_64-Intel-R-_Core-TM-_i3-7100_CPU_@_3.90GHz-with-gentoo-2.6 KiB Mem: 16315916 total, 9780168 free KiB Swap: 33554428 total, 33554428 free Timestamp of repository gentoo: Wed, 25 Mar 2020 00:45:01 +0000 Head commit of repository gentoo: 91cea5a034726d57d5ab35045837a2996f81233f sh bash 4.4_p23-r1 ld GNU ld (Gentoo 2.33.1 p2) 2.33.1 app-shells/bash: 4.4_p23-r1::gentoo dev-lang/perl: 5.30.1::gentoo dev-lang/python: 2.7.17-r1::gentoo, 3.6.10::gentoo, 3.7.6::gentoo dev-util/cmake: 3.16.5::gentoo sys-apps/baselayout: 2.6-r1::gentoo sys-apps/openrc: 0.42.1::gentoo sys-apps/sandbox: 2.13::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.16.1-r1::gentoo sys-devel/binutils: 2.33.1-r1::gentoo sys-devel/gcc: 9.2.0-r2::gentoo sys-devel/gcc-config: 2.2.1::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.2.1-r4::gentoo sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers) sys-libs/glibc: 2.29-r7::gentoo Repositories: gentoo location: /usr/portage/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-metamanifest: yes sync-rsync-extra-opts: --exclude-from=/etc/portage/rsync_excludes sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 local_home location: /usr/portage/local masters: gentoo ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/env.d /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /var/lib/i2pd/certificates" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/var/portage/distfiles" EMERGE_DEFAULT_OPTS="--ask --verbose --autounmask=n" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-march=native -O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildsyspkg config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles ipc-sandbox merge-sync metadata-transfer multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-march=native -O2 -pipe" GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ ftp://mirror.yandex.ru/gentoo-distfiles/ http://ftp.corbina.net/pub/Linux/gentoo/ ftp://ftp.corbina.net/pub/Linux/gentoo/" LANG="ru_RU.utf8" LC_ALL="" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="ru ru_RU" MAKEOPTS="-j2" PKGDIR="/var/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="X a52 ac3 acl alsa amd64 avi berkdb bold bzip2 cdr cli consolekit crypt dbus djvu dri dvd flac fortran gdbm gif gtk iconv inotify jpeg libtirpc lock mp3 multilib ncurses nls nptl ogg openmp pam pcre pdf png policykit qt3support readline seccomp session split-usr ssl tcpd thunar tiff udev udisks unicode utf8 vorbis xattr xcb xulrunner zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" L10N="ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
One more strange and probably related issue: When working with non-privilleged user: $ id uid=1001(tux) gid=1001(tux) groups=1001(tux),18(audio),35(games),85(usb),994(scanner),995(vboxsf),998(vboxusers) For first time poweroff command fron DEs GUI fails producing following data in messages log: Apr 9 22:25:55 tux console-kit-daemon[3025]: WARNING: failed to run script: Failed to execute child process “/usr/bin/pm-is-supported” (No such file or directory) Apr 9 22:25:55 tux console-kit-daemon[3025]: WARNING: failed to run script: Failed to execute child process “/usr/bin/pm-is-supported” (No such file or directory) Apr 9 22:25:55 tux console-kit-daemon[3025]: WARNING: failed to run script: Failed to execute child process “/usr/bin/pm-is-supported” (No such file or directory) For second time it succeed as described in initial message.
elogind simply ignores persistent logins not even display prompt.