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

316.6. kdenetwork-filesharing-26.08.2

Dolphin properties pages that share a folder over Samba and edit its access control list

26.08.2-1 · (GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL) AND GPL-2.0-or-later AND (LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL) AND BSD-3-Clause AND MIT AND CC0-1.0 · 2.0 SBU · 759.5 KiB, 17 files · 44_apps, 264 of 422 · ports/core/kde/kdenetwork-filesharing

Homepage: https://invent.kde.org/network/kdenetwork-filesharing

kdenetwork-filesharing adds two pages to the file properties dialog of Dolphin and every other KIO program. Share shares a folder over SMB as a Samba usershare, chooses which users may read or write it, sets the user’s Samba password and adds the user to the usershare group. Access Control edits the Windows ACL of a file on an SMB mount.

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, kauth, kcompletion, kconfig, kcoreaddons, ki18n, kio, kwidgetsaddons, qcoro, samba, shadow, avahi.

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

Sources: kdenetwork-filesharing-26.08.2.tar.xz (525.9 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 kdenetwork-filesharing'

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 \
	-D USE_SYSTEMD=OFF \
	-D SAMBA_INSTALL=OFF \
	-D CMAKE_DISABLE_FIND_PACKAGE_PackageKitQt6=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_net=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_testparm=ON \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build

Directories: /usr/share/licenses/kdenetwork-filesharing.

qcoro is a requirement of the configure, with its Core, DBus and Quick parts.

A share exists only where Samba is configured for usershares. The plugin reads usershare path from smb.conf through testparm, and adding a share fails until that directory exists, is owned by the usershare group with the sticky bit set, and the user belongs to the group. The package installs none of that configuration; the image does:

net usershare add turns every name in the share’s ACL, the plugin’s Everyone and the user’s own among them, into a SID by asking the local smbd, so a share can be made only while smbd runs. The service script starts it at boot once sambashare has a member, and at the first login of an account the Share tab has just added to the group, kded-kdos asks kdos-powerd to start it.

Other machines reach a share only through TCP port 445, which the shipped firewall keeps closed until its smb service is opened (see The firewall).

Setting the Samba password and joining the group go through a KAuth helper that runs as root: smbpasswd from samba and /usr/sbin/usermod from shadow. Both actions are auth_admin, so a first share asks for an administrator’s password twice:

  1. Make Me a Group Member (org.kde.filesharing.samba.addtogroup). The user then logs out and in again; a restart is not needed, whatever the tab says.
  2. Set Samba password (org.kde.filesharing.samba.createuser).

Homes are mode 0700, so the tab then offers Fix Permissions, which lets others pass through the home folder to reach the shared one.

The page announces new shares over Avahi’s D-Bus interface, so avahi is in depends for run time.