Prompt User's Password Instead of Root's in kdesu Mar 3rd 2021 Words: 116

Problem

I tried opeing KSystemLog this day and a dialog box pop up said “The action you requested needs root privilege. Please enter root’s password below or click or click Ignor to continue with your current privileges.”

The problem is, the root user does not have a password, and I’d like to keep it this way.

The user account I’m using is a sudoer and the application should prompt for user’s password instead of the root’s.

Solution

The kdesu is responsible for privileges prompt and it can be configured to use sudo rather than su.

Edit or create a file ~/.config/kdesurc

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

Reference

sudo - ArchWiki