1

When I try to launch KDE Partition Manager a KDE su dialogue pops up prompting me for root's password:

The action you requested needs root priviliges. Please enter root's passoword below or click Ignore to continue with your current privileges.

Command: KDE_FULL_SESSION=true XDG_RUNTIME_DIR=/run/usr/1000 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus /usr/bin/partitionmanager --dontsu

When I enter my user password, the dialogue box reappears with:

Permission denied. Possibly incorrect password, please try again. On some systems, you need to be in a special group (often: wheel) to use this program.

I've checked that my user is a part of the wheel group. And for terminal commands requiring admin privileges sudo + [myuserpassword] works as expected.

How can I launch KDE Partition Manager with admin privileges?

I'm running the KDE spin of Fedora 28. I created a user but have no root password set.

  • 2
    You may want to re-configure kdesu to use sudo instead of su: see for example ArchWiki: kdesu – steeldriver Aug 18 '18 at 13:13
  • @steeldriver Thanks this worked, if you submit it as an answer I'll accept. – Bprodz Aug 18 '18 at 14:15
1

The problem arises because kdesu tries to use su even if you haven't set a root password.

kdesu can be configured to use sudo instead of su. You need to create a file in ~/.config/kdesurc with the contents:

[super-user-command]
super-user-command=sudo

As per the instructions on the arch wiki. Link. Credit to @steeldriver for the answer.

| improve this answer | |
0
sudo /usr/bin/partitionmanager
| improve this answer | |
  • 2
    I always thought that running GUI programs with sudo was discouraged? – Bprodz Aug 18 '18 at 14:14
  • 2
    Don't run partitionmanager like this. Things might break if you use sudo (note, I am the maintainer of KDE Partition Manager). – Andrius Štikonas Aug 27 '18 at 11:47
  • Okay, that's fine, but then what to do instead? I also can't launch it without sudo. – Attila Jan 4 '19 at 23:07
  • @Attila You can configure kdesu to use sudo instead of su by following the instructions on this page wiki.archlinux.org/index.php/sudo#kdesu – Bprodz Jan 5 '19 at 13:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.