KSystemLog seems to require the root password, using my user password (I am part of the wheel group) does not seem to work. How can I use KSystemLog without the actual root password
looks like the easiest way would be to simply run
sudo -EH ksystemlog
If someone has a better way I’d love to hear it
I just bumped into this too.
I very rarely use the GUI method of viewing logs but today I tried and got met with a “wrong password”. I tried my actual root user password and that worked.
I have no memory of needing to use the actual root users password before.
If I try to open f.ex timeshift, my regular user password (part of wheel) is enough.
Inspecting the logs with KsystemLog xD
# Running KsystemLog using user password
su pam_unix(su:auth): authentication failure; logname=bedna uid=1000 euid=0 tty=/dev/pts/4 ruser=bedna rhost= user=root
# Running KsystemLog using root user password
su pam_unix(su:session): session opened for user root(uid=0) by bedna(uid=1000)
# Running Timeshift
pkexec pam_unix(polkit-1:session): session opened for user root(uid=0) by bedna(uid=1000)
# sudo su (user password)
su pam_unix(su:session): session opened for user root(uid=0) by bedna(uid=1000)
# su root (root user password)
su pam_unix(su:session): session opened for user root(uid=0) by bedna(uid=0)
Something has changed because I have no recollection of ever needing to use my root password.
Switched from polkit to su?
Bump on this, is this intended behavior?
If so, why?
Are there other KDE applications that require root and does not accept sudo password?
Is this a KDE thing or a distro thing?
I’m late to the party - see the same thing when launching from the menu.
Typing ‘ksystemlog’ from the terminal, however, launches without asking for a password.
Using ‘edit application’ in the launcher applet and navigating to the entry for ksystemlog shows a tick under the advanced tab for ‘Run as different user.’ Removing this tick and saving allows it to run from the launcher without asking for a password.
Not sure if this limites functionality in any way but it looks fine at a cursory glance. Is it supposed to run as root for some reason?
I guess it’s because if you don’t have the root access you won’t be able to view kernel logs and logs by other users. You can definitely view logs produced by current user without root.
Sorry, that sounds a bit funny.
I am able to use su here and then get dmesg from konsole, but when using ksystemlog it wants root passwort which is rejected.
So yes, viewing system logs is possible, but not with ksystemlog at first glance.
Use this:
root@pucki:/home/lw# ksystemlog -qwindowtitle KSystemLog
Failed to create wl_display (No such file or directory)
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
log_ksystemlog: Log manager is not yet initialized
Which will open ksystemlog from konsole.
Running from KDE menu will result in this:
Der Zugriff wird verweigert.
Möglicherweise wurde das falsche Passwort verwendet. Bitte versuchen Sie es erneut.
Auf manchen Systemen ist die Zugehörigkeit zu einer speziellen Gruppe (oft: wheel) für das Verwenden dieser Anwendung notwendig.
It works here on Arch with my user Password.
Art des Kontos: Systemverwalter (Administrator/Act as root Account)
The actual user “root” is deactivated on my system, though.