[partitionmanager] [Bug 397542] partitionmanager on Wayland cannot obtain root privileges (kdesu)

2018-08-17 Thread Andrius Štikonas
https://bugs.kde.org/show_bug.cgi?id=397542

--- Comment #7 from Andrius Štikonas  ---
(In reply to Mark from comment #6)
> Hi Andrius, 
> 
> great to see KDE Neon /dev is a step head in fixing bugs ;) I'll just wait
> for this to hit /user. 
> 

It will take a while... We at least need to wait till smartmontools 6.7 is
released, which I don't think will happen in 2018...

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 397542] partitionmanager on Wayland cannot obtain root privileges (kdesu)

2018-08-17 Thread Mark
https://bugs.kde.org/show_bug.cgi?id=397542

--- Comment #6 from Mark  ---
Hi Andrius, 

great to see KDE Neon /dev is a step head in fixing bugs ;) I'll just wait for
this to hit /user. 

> GUI runs as unprivileged user and executes non-GUI helpers as root). 
> Although, to be able to use kauth/polkit we had to use it in a bit naughty 
> way... So I am still harderning KAuth helper a bit...

Perfect, this is the proper approach. Some GUI apps just execute all the GUI as
root, which is prone to troubles. 

Thank you for your great work! 
Cheers,

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 397542] partitionmanager on Wayland cannot obtain root privileges (kdesu)

2018-08-17 Thread Andrius Štikonas
https://bugs.kde.org/show_bug.cgi?id=397542

Andrius Štikonas  changed:

   What|Removed |Added

   Version Fixed In||4.0

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 397542] partitionmanager on Wayland cannot obtain root privileges (kdesu)

2018-08-17 Thread Andrius Štikonas
https://bugs.kde.org/show_bug.cgi?id=397542

Andrius Štikonas  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED

--- Comment #5 from Andrius Štikonas  ---
It worked for me last time I tried 3.3 (and I use wayland).
Maybe you were trying to run it under XWayland, not wayland?

In that case you can try "xhost +", it helps with GParted too but
note that there are security implications.

Anyway, current git no longer uses kdesu, so this would be fixed anyway,
you can already try it in neon bionic dev editions.

NetworkManager and kwallet are unrelated...
Kwallet just uses application password.

Networkmanager uses polkit which is the method used in partitionmanager git
(GUI runs as unprivileged user and executes non-GUI helpers as root). Although,
to be able to use kauth/polkit we had to use it in a bit naughty way... So I am
still harderning KAuth helper a bit...

kdesu works with kate. It's just kate that doesn't allow running as root. In
general you shouldn't run any GUI apps as root. kate even prints a warning if
you run it with kdesu -t kate

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 397542] partitionmanager on Wayland cannot obtain root privileges (kdesu)

2018-08-17 Thread Mark
https://bugs.kde.org/show_bug.cgi?id=397542

--- Comment #4 from Mark  ---
Did some more testing, might be bug of kdesu, not partitionmanager ?

$ ls -ld `which kdesu`
lrwxrwxrwx 1 root root 43 srp 12 17:42 /usr/sbin/kdesu ->
/usr/lib/x86_64-linux-gnu/libexec/kf5/kdesu

$ kdesu kate
QSocketNotifier: Can only be used with threads started with QThread
org.kde.kdesu: Daemon not safe (not sgid), not using it.

Using Wayland-EGL
Using the 'xdg-shell-v6' shell integration

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 397542] partitionmanager on Wayland cannot obtain root privileges (kdesu)

2018-08-17 Thread Mark
https://bugs.kde.org/show_bug.cgi?id=397542

--- Comment #3 from Mark  ---
Created attachment 114464
  --> https://bugs.kde.org/attachment.cgi?id=114464=edit
GUI command asking for password to sudo, then fails silently

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 397542] partitionmanager on Wayland cannot obtain root privileges (kdesu)

2018-08-17 Thread Mark
https://bugs.kde.org/show_bug.cgi?id=397542

--- Comment #2 from Mark  ---
Thanks for your testing, Alexander. From your description it seems you're
running a normal X session, right? As the bug states, this is a problem only on
wayland (in sddm choose Plasma (Wayland) session).

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 397542] partitionmanager on Wayland cannot obtain root privileges (kdesu)

2018-08-17 Thread Alexander Mentyu
https://bugs.kde.org/show_bug.cgi?id=397542

Alexander Mentyu  changed:

   What|Removed |Added

 CC||notux...@gmail.com

--- Comment #1 from Alexander Mentyu  ---
Partition Manager and GParted are launching ok after password enter - both from
App Menu and from Konsole (partitionmanager and gparted-pkexec). @Mark can you
please add more info about your system?

Distribution: KDE neon Developer Edition
Kernel: 4.15.0-29-generic
Plasma: 5.13.80
Apps: 18.11.70
Qt: 5.11.1
Frameworks: 5.48.0
Graphics:
Card-1: Intel Device 5917
Card-2: NVIDIA GM108M [GeForce 940MX]
Display Server: X.Org 1.19.6 drivers: (unloaded: fbdev,vesa) FAILED: nouveau
Resolution: 1920x1080@57.25hz
GLX Renderer: Mesa DRI Intel UHD Graphics 620 (Kabylake GT2) GLX Version: 3.0
Mesa 18.0.5

-- 
You are receiving this mail because:
You are watching all bug changes.