Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

316.2. kio-admin-26.08.2

admin:/ KIO worker — read and write root-owned files from Dolphin through a polkit-authorised helper

26.08.2-1 · (GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL) AND BSD-3-Clause AND FSFAP AND CC0-1.0 · 2.7 SBU · 521.6 KiB, 13 files · 44_apps, 260 of 422 · ports/core/kde/kio-admin

Homepage: https://invent.kde.org/system/kio-admin

kio-admin is the admin:/ KIO worker. Dolphin’s “Open as Administrator” action opens a folder as admin:/path, and every listing, read, write, rename, permission change and delete under it is carried out by a helper running as root, after polkit has authorised the user.

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, kcoreaddons, ki18n, kio, polkit-qt6, polkit, dbus.

Required by (1): kde-gear-core.

Sources: kio-admin-26.08.2.tar.xz (39.6 KiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install kio-admin'

build.sh:

cmake -S . -B build -G Ninja \
	-D CMAKE_INSTALL_PREFIX=/usr \
	-D KDE_INSTALL_LIBDIR=lib \
	-D CMAKE_BUILD_TYPE=Release \
	-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
	-D BUILD_TESTING=OFF \
	-D KF_SKIP_PO_PROCESSING=ON \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build

Directories: /usr/share/licenses/kio-admin.

The helper, /usr/lib/libexec/kf6/kio-admin-helper, owns org.kde.kio.admin on the system bus. Its D-Bus service file carries User=root and no SystemdService= line, so dbus starts it on the first call through its setuid activation helper; the system.d policy the package installs lets any user send to the helper’s interfaces and only root own the name.

Every call is checked against the polkit action org.kde.kio.admin.commands, which is auth_admin_keep for an active session and no for an inactive one, with no allow_any. It therefore works only in a login that elogind registers as active, with an authentication agent running to ask for the password; polkit-kde-agent-1 is that agent in the Plasma session, and outside a session every request is refused. The agent is a session port, so it is not in this port’s depends.