How to remove the need to type password at `Authentication Required` popup?

Operating System: Aurora-DX 41
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.9.0
Qt Version: 6.8.1
Kernel Version: 6.12.5-200.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Graphics Processor: Mesa Intel® HD Graphics 630

Usually in situations such as opening apps like the KDE Partition Manager, an Authentication Required pops up and I’ll need to type the password to authenticate as myself. I’m the only person using this computer and would like a way to avoid having to type password every time doing things such as managing disks.

Ideally, once I log into the desktop session, I’d like to not having to type password again until I log out or reboot. Or at least when authentication is required, I can simply click OK or press enter to confirm I’m the admin like in Windows.

So far I’ve tried sudo visudo to edit sudoers by adding
Defaults timestamp_timeout = -1
Defaults !authenticate
or
%wheel ALL=(ALL) NOPASSWD: ALL
my_name ALL=(ALL) NOPASSWD: ALL at the end,
but to no avail.

I believe KDE is using Polkit (pkexec) for privilege elevation so sudo is (almost) irrelevant here. Check this page from Arch wiki:

https://wiki.archlinux.org/title/Polkit

section “Bypass password prompt”.

This question was asked and answered on GitHub Issues: Can't skip `Authentication Required` despite `sudoers` edit · Issue #58 · ublue-os/aurora · GitHub.

1 Like

Nice. I was not aware.

Anyway, it’s good to have the answer here too.

1 Like