Bug 427912 - kdesu doesn't work on wayland
Summary: kdesu doesn't work on wayland
Status: RESOLVED UPSTREAM
Alias: None
Product: kdesu
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal (vote)
Target Milestone: ---
Assignee: kdesu bugs tracker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-18 09:11 UTC by Franz Trischberger
Modified: 2022-09-02 14:36 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Franz Trischberger 2020-10-18 09:11:30 UTC
SUMMARY
kdesu under wayland (no matter if run from within plasma wayland session or gnome wayland) doesn't do anything.
Under X (tested in plasma and gnome) kdesu does what I want to use it for - run an application as a different user.


STEPS TO REPRODUCE
1. login to a wayland session as user1
2. run e.g. konsole as user2 with the command
kdesu -n -u user2 konsole

OBSERVED RESULT
kdesu simply returns without opening a konsole window

EXPECTED RESULT
A konsole window with user2 as process owner is spawned.
Like it works when run from within an X session.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.20.0
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.1
Distribution: archlinux, latest packages.
Comment 1 Nate Graham 2020-10-26 17:47:40 UTC
Yes, I'm afraid Wayland's security model doesn't permit running apps as root, with elevated permissions, or as a different user like this. The app itself needs to gain whatever functionality you're using kdesu to approximate.