View previous topic :: View next topic |
Author |
Message |
vyedmic n00b
Joined: 02 Dec 2010 Posts: 40
|
Posted: Sat Jan 06, 2024 10:27 pm Post subject: [SOLVED] No polkit actions, re-emerging does not help |
|
|
Hello,
pkaction output is empty
When trying an action
Code: | ~ $ systemctl reboot
Call to Reboot failed: Action org.freedesktop.login1.reboot is not registered
Failed to start reboot.target: Action org.freedesktop.systemd1.manage-units is not registered
See system logs and 'systemctl status reboot.target' for details.
~ $
|
I tried re-emerging/upgrading/downgrading both polkit and systemd but alas unsuccessfully. Can you please help?
Thank you.
Last edited by vyedmic on Thu Jan 11, 2024 6:01 pm; edited 1 time in total |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3918
|
Posted: Sat Jan 06, 2024 10:33 pm Post subject: |
|
|
Please either have USE="policykit" in make.conf followed by a rebuild@world or switch to a desktop profile again followed by a rebuild@world. _________________
|
|
Back to top |
|
|
vyedmic n00b
Joined: 02 Dec 2010 Posts: 40
|
Posted: Sun Jan 07, 2024 2:54 pm Post subject: |
|
|
Thank you for the suggestion. I already run 'emerge -e world' and would like to avoid it again if possible. I have not touched my profile nor my USE flags and everything worked until recent upgrade (on Dec 29, battling with this since then). Here's my list of currently installed packages with policykit USE flag and it seems it is correctly forced by my porfile.
Code: | [ebuild R ] kde-frameworks/kauth-5.113.0:5/5.113::gentoo USE="(policykit) -debug -doc -test" 0 KiB
[ebuild R ~] sys-apps/systemd-255.2-r1:0/2::gentoo USE="acl dns-over-tls gcrypt kmod lz4 openssl pam pcre (policykit) resolvconf seccomp sysv-utils zstd -apparmor -audit -boot -cgroup-hybrid -cryptsetup -curl -elfutils -fido2 -gnutls -homed -http -idn -importd -iptables -kernel-install -lzma -pkcs11 -pwquality -qrcode -secureboot (-selinux) (-split-usr) -test -tpm -ukify -vanilla -xkb" ABI_X86="32 (64) (-x32)" PYTHON_SINGLE_TARGET="python3_11 -python3_10 -python3_12" 0 KiB
[ebuild R ] kde-plasma/plasma-workspace-5.27.10-r1:5::gentoo USE="calendar fontconfig handbook (policykit) screencast semantic-desktop wallpaper-metadata -appstream -debug -geolocation -gps -telemetry -test" 0 KiB
[ebuild R ] sys-block/gparted-1.5.0-r1::gentoo USE="kde (policykit) wayland -test" 0 KiB
[ebuild R ] net-misc/modemmanager-1.18.12:0/1::gentoo USE="introspection (policykit) qmi qrtr systemd udev (-elogind) -mbim (-selinux) -test -vala" 0 KiB
[ebuild R ] net-misc/networkmanager-1.42.6-r2::gentoo USE="concheck gtk-doc introspection modemmanager nss (policykit) ppp systemd tools -audit -bluetooth -connection-sharing -debug -dhclient -dhcpcd (-elogind) -gnutls -iptables -iwd -libedit -lto -nftables -ofono -ovs -psl -resolvconf (-selinux) -syslog -teamd -test -vala -wext -wifi" ABI_X86="(64) -32 (-x32)" 0 KiB
|
|
|
Back to top |
|
|
vyedmic n00b
Joined: 02 Dec 2010 Posts: 40
|
Posted: Sun Jan 07, 2024 3:24 pm Post subject: |
|
|
Emerge info output
Code: | Portage 3.0.59 (python 3.11.7-final-0, default/linux/amd64/17.1/desktop/plasma/systemd/merged-usr, gcc-13, glibc-2.38-r9, 6.6.9-gentoo-HermAphrodite x86_64)
=================================================================
System uname: Linux-6.6.9-gentoo-HermAphrodite-x86_64-Intel-R-_Core-TM-_i5-7600K_CPU_@_3.80GHz-with-glibc2.38
KiB Mem: 16234684 total, 11751036 free
KiB Swap: 16383996 total, 16383996 free
Timestamp of repository gentoo: Sun, 07 Jan 2024 11:30:01 +0000
Head commit of repository gentoo: 169ddca4df3ca59cfa0f7b54f3a95a3f6e9cc7c7
Timestamp of repository kde: Sat, 06 Jan 2024 12:32:52 +0000
Head commit of repository kde: e8e26601226db26372e681e8a9e91d362466cb69
Head commit of repository steam-overlay: ff3b0a7883a6d5cb1f1ac7d85994e7ddadec15b4
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p4) 2.41.0
app-misc/pax-utils: 1.3.5::gentoo
app-shells/bash: 5.1_p16-r6::gentoo
dev-java/java-config: 2.3.3-r1::gentoo
dev-lang/perl: 5.38.2-r1::gentoo
dev-lang/python: 3.10.13::gentoo, 3.11.7::gentoo, 3.12.1::gentoo
dev-lang/rust-bin: 1.71.1::gentoo
dev-util/cmake: 3.27.9::gentoo
dev-util/meson: 1.3.0-r2::gentoo
sys-apps/baselayout: 2.14-r1::gentoo
sys-apps/sandbox: 2.38::gentoo
sys-apps/systemd: 255.2-r1::gentoo
sys-devel/autoconf: 2.71-r6::gentoo
sys-devel/automake: 1.16.5-r1::gentoo
sys-devel/binutils: 2.41-r3::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc: 13.2.1_p20230826::gentoo
sys-devel/gcc-config: 2.11::gentoo
sys-devel/libtool: 2.4.7-r1::gentoo
sys-devel/llvm: 16.0.6::gentoo
sys-devel/make: 4.4.1-r1::gentoo
sys-kernel/linux-headers: 6.1::gentoo (virtual/os-headers)
sys-libs/glibc: 2.38-r9::gentoo
Repositories:
gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
volatile: True
sync-rsync-verify-jobs: 1
sync-rsync-verify-max-age: 24
sync-rsync-extra-opts:
sync-rsync-verify-metamanifest: yes
kde
location: /var/db/repos/kde
sync-type: git
sync-uri: https://github.com/gentoo-mirror/kde.git
masters: gentoo
volatile: False
local_overlay
location: /usr/local/portage
masters: gentoo
priority: 0
volatile: True
steam-overlay
location: /usr/local/portage/steam-overlay
sync-type: git
sync-uri: https://github.com/anyc/steam-overlay.git
masters: gentoo
priority: 50
volatile: True
Installed sets: @esteam
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 /usr/share/config /usr/share/gnupg/qualified.txt"
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"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted 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="https://mirror.bytemark.co.uk/gentoo/ https://mirrors.evowise.com/gentoo/ https://www.mirrorservice.org/sites/distfiles.gentoo.org/"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="en_GB cs"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
SHELL="/bin/bash"
USE="X a52 aac acl acpi activities alsa amd64 branding bzip2 cairo cdda cdr cli crypt cups dbus declarative dri dts dvd dvdr encode exif flac fortran gdbm gif gpm gtk gui ibus iconv icu ipv6 jpeg kde kwallet lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf pipewire plasma png policykit ppds pulseaudio qml qt5 readline samba screencast sdl seccomp semantic-desktop sound spell ssl startup-notification svg symlink systemd test-rust tiff tk truetype udev udisks unicode upower usb vdpau vkd3d vorbis vulkan wayland widevine widgets wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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="mmx mmxext sse sse2 sse3 ssse3 sse4_1 sse4_2 avx" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en-GB cs" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS |
|
|
Back to top |
|
|
GDH-gentoo Veteran
Joined: 20 Jul 2019 Posts: 1701 Location: South America
|
Posted: Sun Jan 07, 2024 3:37 pm Post subject: Re: No polkit actions, re-emerging does not help |
|
|
vyedmic wrote: | Code: | ~ $ systemctl reboot
Call to Reboot failed: Action org.freedesktop.login1.reboot is not registered
Failed to start reboot.target: Action org.freedesktop.systemd1.manage-units is not registered
See system logs and 'systemctl status reboot.target' for details.
~ $
|
|
Is the Polkit daemon down? Have you checked the system logs for messages about Polkit as suggested? Post the output of systemctl --list-units --all. _________________
NeddySeagoon wrote: | I'm not a witch, I'm a retired electronics engineer |
Ionen wrote: | As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though |
|
|
Back to top |
|
|
vyedmic n00b
Joined: 02 Dec 2010 Posts: 40
|
Posted: Sun Jan 07, 2024 4:04 pm Post subject: |
|
|
Slightly redacted systemctl --all
Code: | UNIT LOAD ACTIVE SUB DESCRIPTION
proc-sys-fs-binfmt_misc.automount loaded active waiting Arbitrary Executable File Formats File System Automount Point
-.mount loaded active mounted Root Mount
dev-hugepages.mount loaded active mounted Huge Pages File System
dev-mqueue.mount loaded active mounted POSIX Message Queue File System
home.mount loaded active mounted /home
proc-sys-fs-binfmt_misc.mount loaded inactive dead Arbitrary Executable File Formats File System
● run-credentials-systemd\x2dresolved.service.mount not-found inactive dead run-credentials-systemd\x2dresolved.service.mount
● run-credentials-systemd\x2dsysctl.service.mount not-found inactive dead run-credentials-systemd\x2dsysctl.service.mount
● run-credentials-systemd\x2dsysusers.service.mount not-found inactive dead run-credentials-systemd\x2dsysusers.service.mount
● run-credentials-systemd\x2dtmpfiles\x2dclean.service.mount not-found inactive dead run-credentials-systemd\x2dtmpfiles\x2dclean.service.mount
● run-credentials-systemd\x2dtmpfiles\x2dsetup.service.mount not-found inactive dead run-credentials-systemd\x2dtmpfiles\x2dsetup.service.mount
● run-credentials-systemd\x2dtmpfiles\x2dsetup\x2ddev.service.mount not-found inactive dead run-credentials-systemd\x2dtmpfiles\x2dsetup\x2ddev.service.mount
● run-credentials-systemd\x2dtmpfiles\x2dsetup\x2ddev\x2dearly.service.mount not-found inactive dead run-credentials-systemd\x2dtmpfiles\x2dsetup\x2ddev\x2dearly.service.mount
● run-credentials-systemd\x2dvconsole\x2dsetup.service.mount not-found inactive dead run-credentials-systemd\x2dvconsole\x2dsetup.service.mount
run-user-1000-doc.mount loaded active mounted /run/user/1000/doc
run-user-1000.mount loaded active mounted /run/user/1000
sys-fs-fuse-connections.mount loaded active mounted FUSE Control File System
sys-kernel-config.mount loaded inactive dead Kernel Configuration File System
sys-kernel-debug.mount loaded active mounted Kernel Debug File System
sys-kernel-tracing.mount loaded active mounted Kernel Trace File System
tmp.mount loaded active mounted Temporary Directory /tmp
var-lib-machines.mount loaded inactive dead Virtual Machine and Container Storage (Compatibility)
cron-update.path loaded active waiting systemd-cron path monitor
cups.path loaded active running CUPS Scheduler
systemd-ask-password-console.path loaded active waiting Dispatch Password Requests to Console Directory Watch
systemd-ask-password-wall.path loaded active waiting Forward Password Requests to Wall Directory Watch
init.scope loaded active running System and Service Manager
session-2.scope loaded active running Session 2 of User vyedma
alsa-restore.service loaded active exited Save/Restore Sound Card State
alsa-state.service loaded inactive dead Manage Sound Card State (restore and store)
● auditd.service not-found inactive dead auditd.service
● auto-cpufreq.service not-found inactive dead auto-cpufreq.service
cron-daily.service loaded inactive dead systemd-cron daily script service
cron-hourly.service loaded inactive dead systemd-cron hourly script service
cron-mail@cron\x2ddaily.service loaded inactive dead systemd-cron job mail — cron\x2ddaily
cron-mail@cron\x2dhourly.service loaded inactive dead systemd-cron job mail — cron\x2dhourly
cron-mail@cron\x2dmonthly.service loaded inactive dead systemd-cron job mail — cron\x2dmonthly
cron-mail@cron\x2dweekly.service loaded inactive dead systemd-cron job mail — cron\x2dweekly
cron-monthly.service loaded inactive dead systemd-cron monthly script service
cron-update.service loaded inactive dead systemd-cron update units
cron-weekly.service loaded inactive dead systemd-cron weekly script service
cups.service loaded active running CUPS Scheduler
dbus.service loaded active running D-Bus System Message Bus
emergency.service loaded inactive dead Emergency Shell
getty@tty1.service loaded inactive dead Getty on tty1
initrd-cleanup.service loaded inactive dead Cleaning Up and Shutting Down Daemons
initrd-parse-etc.service loaded inactive dead Mountpoints Configured in the Real Root
initrd-switch-root.service loaded inactive dead Switch Root
initrd-udevadm-cleanup-db.service loaded inactive dead Cleanup udev Database
kmod-static-nodes.service loaded inactive dead Create List of Static Device Nodes
ldconfig.service loaded inactive dead Rebuild Dynamic Linker Cache
modprobe@configfs.service loaded inactive dead Load Kernel Module configfs
modprobe@dm_mod.service loaded inactive dead Load Kernel Module dm_mod
modprobe@drm.service loaded inactive dead Load Kernel Module drm
modprobe@fuse.service loaded inactive dead Load Kernel Module fuse
modprobe@loop.service loaded inactive dead Load Kernel Module loop
● nslcd.service not-found inactive dead nslcd.service
● plymouth-quit-wait.service not-found inactive dead plymouth-quit-wait.service
● plymouth-quit.service not-found inactive dead plymouth-quit.service
● plymouth-start.service not-found inactive dead plymouth-start.service
polkit.service loaded active running Authorization Manager
power-profiles-daemon.service loaded active running Power Profiles daemon
rescue.service loaded inactive dead Rescue Shell
sddm.service loaded active running Simple Desktop Display Manager
● syslog.service not-found inactive dead syslog.service
● system76-power.service not-found inactive dead system76-power.service
systemd-ask-password-console.service loaded inactive dead Dispatch Password Requests to Console
systemd-ask-password-wall.service loaded inactive dead Forward Password Requests to Wall
systemd-battery-check.service loaded inactive dead Check battery level during early boot
systemd-binfmt.service loaded inactive dead Set Up Additional Binary Formats
systemd-firstboot.service loaded inactive dead First Boot Wizard
systemd-fsck-root.service loaded active exited File System Check on Root Device
systemd-hibernate-resume.service loaded inactive dead Resume from hibernation
systemd-hwdb-update.service loaded inactive dead Rebuild Hardware Database
systemd-journal-catalog-update.service loaded inactive dead Rebuild Journal Catalog
systemd-journal-flush.service loaded active exited Flush Journal to Persistent Storage
systemd-journald.service loaded active running Journal Service
systemd-logind.service loaded active running User Login Management
systemd-machine-id-commit.service loaded inactive dead Commit a transient machine-id on disk
systemd-modules-load.service loaded active exited Load Kernel Modules
systemd-networkd-wait-online.service loaded active exited Wait for Network to be Configured
systemd-networkd.service loaded active running Network Configuration
systemd-oomd.service loaded inactive dead Userspace Out-Of-Memory (OOM) Killer
systemd-random-seed.service loaded active exited Load/Save OS Random Seed
systemd-remount-fs.service loaded active exited Remount Root and Kernel File Systems
systemd-repart.service loaded inactive dead Repartition Root Disk
systemd-resolved.service loaded active running Network Name Resolution
systemd-soft-reboot.service loaded inactive dead Reboot System Userspace
systemd-sysctl.service loaded active exited Apply Kernel Variables
systemd-sysusers.service loaded inactive dead Create System Users
systemd-timesyncd.service loaded active running Network Time Synchronization
systemd-tmpfiles-clean.service loaded inactive dead Cleanup of Temporary Directories
systemd-tmpfiles-setup-dev-early.service loaded active exited Create Static Device Nodes in /dev gracefully
systemd-tmpfiles-setup-dev.service loaded active exited Create Static Device Nodes in /dev
systemd-tmpfiles-setup.service loaded active exited Create Volatile Files and Directories
systemd-udev-settle.service loaded inactive dead Wait for udev To Complete Device Initialization
systemd-udev-trigger.service loaded active exited Coldplug All udev Devices
systemd-udevd.service loaded active running Rule-based Manager for Device Events and Files
systemd-update-done.service loaded inactive dead Update is Completed
systemd-update-utmp.service loaded active exited Record System Boot/Shutdown in UTMP
systemd-user-sessions.service loaded active exited Permit User Sessions
systemd-vconsole-setup.service loaded active exited Virtual Console Setup
● tlp.service not-found inactive dead tlp.service
● tuned.service not-found inactive dead tuned.service
udisks2.service loaded active running Disk Manager
upower.service loaded active running Daemon for power management
user-runtime-dir@1000.service loaded active exited User Runtime Directory /run/user/1000
user@1000.service loaded active running User Manager for UID 1000
-.slice loaded active active Root Slice
system-cron\x2dmail.slice loaded inactive dead Slice /system/cron-mail
system-getty.slice loaded active active Slice /system/getty
system-modprobe.slice loaded active active Slice /system/modprobe
system.slice loaded active active System Slice
user-1000.slice loaded active active User Slice of UID 1000
user.slice loaded active active User and Session Slice
cups.socket loaded active running CUPS Scheduler
dbus.socket loaded active running D-Bus System Message Bus Socket
syslog.socket loaded inactive dead Syslog Socket
systemd-coredump.socket loaded active listening Process Core Dump Socket
systemd-journald-audit.socket loaded inactive dead Journal Audit Socket
systemd-journald-dev-log.socket loaded active running Journal Socket (/dev/log)
systemd-journald.socket loaded active running Journal Socket
systemd-networkd.socket loaded active running Network Service Netlink Socket
systemd-oomd.socket loaded inactive dead Userspace Out-Of-Memory (OOM) Killer Socket
systemd-sysext.socket loaded active listening System Extension Image Management (Varlink)
systemd-udevd-control.socket loaded active running udev Control Socket
systemd-udevd-kernel.socket loaded active running udev Kernel Socket
dev-disk-by\x2ddiskseq-11\x2dpart5.swap loaded active active /dev/disk/by-diskseq/11-part5
dev-disk-by\x2did-ata\x2dSamsung_SSD_850_EVO_500GB_S3R3NF0J818247T\x2dpart5.swap loaded active active /dev/disk/by-id/ata-Samsung_SSD_850_EVO_500GB_S3R3NF0J818247T-part5
dev-disk-by\x2did-wwn\x2d0x5002538d42247525\x2dpart5.swap loaded active active /dev/disk/by-id/wwn-0x5002538d42247525-part5
dev-disk-by\x2dpartuuid-b62184b2\x2dd357\x2d4421\x2db907\x2d4619ffca0a44.swap loaded active active /dev/disk/by-partuuid/b62184b2-d357-4421-b907-4619ffca0a44
dev-disk-by\x2dpath-pci\x2d0000:00:17.0\x2data\x2d2.0\x2dpart5.swap loaded active active /dev/disk/by-path/pci-0000:00:17.0-ata-2.0-part5
dev-disk-by\x2dpath-pci\x2d0000:00:17.0\x2data\x2d2\x2dpart5.swap loaded active active /dev/disk/by-path/pci-0000:00:17.0-ata-2-part5
dev-disk-by\x2duuid-6b9ef4f7\x2dd8c6\x2d44df\x2d9594\x2ddcdce50c05f4.swap loaded active active /dev/disk/by-uuid/6b9ef4f7-d8c6-44df-9594-dcdce50c05f4
dev-sda5.swap loaded active active /dev/sda5
basic.target loaded active active Basic System
blockdev@dev-disk-by\x2dpartuuid-4cae81a9\x2d93ed\x2d4ce8\x2da3aa\x2d3f685af80b56.target loaded inactive dead Block Device Preparation for /dev/disk/by-partuuid/4cae81a9-93ed-4ce8-a3aa-3f685af80b56
blockdev@dev-disk-by\x2dpartuuid-836fb44f\x2d92cb\x2d4817\x2d930d\x2d8fca388cf2d2.target loaded inactive dead Block Device Preparation for /dev/disk/by-partuuid/836fb44f-92cb-4817-930d-8fca388cf2d2
blockdev@dev-disk-by\x2dpartuuid-8629ad2a\x2d77aa\x2d4d33\x2d819b\x2d4e12f392028f.target loaded inactive dead Block Device Preparation for /dev/disk/by-partuuid/8629ad2a-77aa-4d33-819b-4e12f392028f
blockdev@dev-disk-by\x2dpartuuid-b62184b2\x2dd357\x2d4421\x2db907\x2d4619ffca0a44.target loaded inactive dead Block Device Preparation for /dev/disk/by-partuuid/b62184b2-d357-4421-b907-4619ffca0a44
blockdev@dev-sda5.target loaded inactive dead Block Device Preparation for /dev/sda5
blockdev@dev-sda7.target loaded inactive dead Block Device Preparation for /dev/sda7
blockdev@dev-sdc1.target loaded inactive dead Block Device Preparation for /dev/sdc1
cron-daily.target loaded inactive dead systemd-cron daily target
cron-hourly.target loaded inactive dead systemd-cron hourly target
cron-monthly.target loaded inactive dead systemd-cron monthly target
cron-weekly.target loaded inactive dead systemd-cron weekly target
cron.target loaded active active systemd-cron
● cryptsetup.target not-found inactive dead cryptsetup.target
default.target loaded active active Graphical Interface
● display-manager.target not-found inactive dead display-manager.target
emergency.target loaded inactive dead Emergency Mode
final.target loaded inactive dead Late Shutdown Services
first-boot-complete.target loaded inactive dead First Boot Complete
getty-pre.target loaded inactive dead Preparation for Logins
getty.target loaded active active Login Prompts
graphical.target loaded inactive dead Graphical Interface
initrd-fs.target loaded inactive dead Initrd File Systems
initrd-root-device.target loaded inactive dead Initrd Root Device
initrd-root-fs.target loaded inactive dead Initrd Root File System
initrd-switch-root.target loaded inactive dead Switch Root
initrd-usr-fs.target loaded inactive dead Initrd /usr File System
initrd.target loaded inactive dead Initrd Default Target
local-fs-pre.target loaded active active Preparation for Local File Systems
local-fs.target loaded active active Local File Systems
machines.target loaded active active Containers
multi-user.target loaded active active Multi-User System
network-online.target loaded active active Network is Online
network-pre.target loaded inactive dead Preparation for Network
network.target loaded active active Network
nss-lookup.target loaded active active Host and Network Name Lookups
nss-user-lookup.target loaded inactive dead User and Group Name Lookups
paths.target loaded active active Path Units
remote-fs-pre.target loaded inactive dead Preparation for Remote File Systems
remote-fs.target loaded active active Remote File Systems
rescue.target loaded inactive dead Rescue Mode
shutdown.target loaded inactive dead System Shutdown
slices.target loaded active active Slice Units
sockets.target loaded active active Socket Units
soft-reboot.target loaded inactive dead Reboot System Userspace
sound.target loaded active active Sound Card
swap.target loaded active active Swaps
sysinit.target loaded active active System Initialization
time-set.target loaded active active System Time Set
time-sync.target loaded inactive dead System Time Synchronized
timers.target loaded active active Timer Units
umount.target loaded inactive dead Unmount All Filesystems
cron-daily.timer loaded active waiting systemd-cron daily timer
cron-hourly.timer loaded active waiting systemd-cron hourly timer
cron-monthly.timer loaded active waiting systemd-cron monthly timer
cron-weekly.timer loaded active waiting systemd-cron weekly timer
systemd-tmpfiles-clean.timer loaded active waiting Daily Cleanup of Temporary Directories
|
Here is journalctl -b | grep polkit
Code: | Jan 07 14:44:33 HermAphrodite dbus-daemon[270]: [system] Activating via systemd: service name='org.freedesktop.PolicyKit1' unit='polkit.service' requested by ':1.6' (uid=0 pid=339 comm="/usr/lib/systemd/systemd-hostnamed")
Jan 07 14:44:33 HermAphrodite polkitd[340]: Started polkitd version 123
Jan 07 14:44:33 HermAphrodite polkitd[340]: Loading rules from directory /etc/polkit-1/rules.d
Jan 07 14:44:33 HermAphrodite polkitd[340]: Loading rules from directory /usr/share/polkit-1/rules.d
Jan 07 14:44:33 HermAphrodite polkitd[340]: Error opening rules directory: Error opening directory “/usr/share/polkit-1/rules.d”: Permission denied (g-file-error-quark, 2)
Jan 07 14:44:33 HermAphrodite polkitd[340]: Finished loading, compiling and executing 0 rules
Jan 07 14:44:33 HermAphrodite polkitd[340]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
Jan 07 14:44:45 HermAphrodite polkit-kde-authentication-agent-1[615]: New PolkitAgentListener 0x564ba70c7cf0
Jan 07 14:44:45 HermAphrodite polkit-kde-authentication-agent-1[615]: Adding new listener PolkitQt1::Agent::Listener(0x7f35ec011c40) for 0x564ba70c7cf0
Jan 07 14:44:45 HermAphrodite polkit-kde-authentication-agent-1[615]: Listener online
Jan 07 14:44:45 HermAphrodite polkitd[340]: Registered Authentication Agent for unix-session:2 (system bus name :1.28 [/usr/lib64/libexec/polkit-kde-authentication-agent-1], object path /org/kde/PolicyKit1/AuthenticationAgent, locale en_GB.utf8)
Jan 07 14:44:45 HermAphrodite polkit-kde-authentication-agent-1[615]: Authentication agent result: true
Jan 07 14:44:45 HermAphrodite systemd[414]: app-polkit\x2dgnome\x2dauthentication\x2dagent\x2d1@autostart.service: Skipped due to 'exec-condition'.
Jan 07 14:44:56 HermAphrodite polkitd[340]: Registered Authentication Agent for unix-process:793:2684 (system bus name :1.31 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_GB.utf8)
Jan 07 14:44:56 HermAphrodite polkitd[340]: Unregistered Authentication Agent for unix-process:793:2684 (system bus name :1.31, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_GB.utf8) (disconnected from bus) |
Here is ls -la /usr/share/polkit-1/
Code: | total 28
drwxr-xr-x 4 root root 4096 Jan 6 21:55 .
drwxr-xr-x 252 root root 12288 Jan 4 23:05 ..
drwxr-xr-x 2 root root 4096 Jan 6 21:55 actions
-rw-r--r-- 1 root root 881 Jul 28 13:34 policyconfig-1.dtd
drwx------ 2 polkitd root 4096 Jan 6 21:55 rules.d
|
I just tried changing the owner of the rules.d directory to polkitd:polkitd and changing permissions to 0777, but the permissions error when restarting polkit.service remains. |
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1970
|
Posted: Wed Jan 10, 2024 7:02 pm Post subject: |
|
|
Newer Polkit has some hardening enabled in its systemd unit. Wonder if that's related. |
|
Back to top |
|
|
vyedmic n00b
Joined: 02 Dec 2010 Posts: 40
|
Posted: Thu Jan 11, 2024 2:31 pm Post subject: |
|
|
sam_ wrote: | Newer Polkit has some hardening enabled in its systemd unit. Wonder if that's related. |
Thanks. Looks like the problem is /usr/share as a symoblic link. Submitted a bug, waiting to hear. |
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1970
|
Posted: Thu Jan 11, 2024 2:40 pm Post subject: |
|
|
For others: bug 921677. |
|
Back to top |
|
|
vyedmic n00b
Joined: 02 Dec 2010 Posts: 40
|
Posted: Thu Jan 11, 2024 6:00 pm Post subject: |
|
|
Finally, this was caused by my /usr/share being a symlink to /home/share and newer versions of polkit using a ProtectHome feature of systemd which prevented access.
Solved by bind mounting /home/share as per the bug. Thanks everyone! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|