Thorsten Leemhuis (acct. 1/4) on Nostr: Annoyed by having to put #sudo in front on #dmesg[1]? Then use this instead[2]: $ ...
Annoyed by having to put #sudo in front on #dmesg[1]?
Then use this instead[2]:
$ journalctl -k
It should work if the user executing this is a member of the groups "systemd-journal", "adm", or "wheel".
[1] which is the case if CONFIG_SECURITY_DMESG_RESTRICT is turned on in your #Linux #kernel's .config – which #Fedora recently switched on, something many other distros did already a while ago.
[2] works for the common case, for some fancier stuff you might still need dmesg #LinuxKernel
Published at
2023-12-29 10:03:27Event JSON
{
"id": "a8c18b826a991ef73cc1b6d21ece39cea20c3c955cb9a4321693f21ab475d305",
"pubkey": "4893fb73a49eea37a502306562557156b48d9f308e1d1a997bfe04eec5cbf3f9",
"created_at": 1703844207,
"kind": 1,
"tags": [
[
"t",
"sudo"
],
[
"t",
"dmesg"
],
[
"t",
"linux"
],
[
"t",
"kernel"
],
[
"t",
"fedora"
],
[
"t",
"linuxkernel"
],
[
"proxy",
"https://fosstodon.org/users/kernellogger/statuses/111663133955582015",
"activitypub"
]
],
"content": "Annoyed by having to put #sudo in front on #dmesg[1]?\n\nThen use this instead[2]:\n\n$ journalctl -k\n\nIt should work if the user executing this is a member of the groups \"systemd-journal\", \"adm\", or \"wheel\".\n\n[1] which is the case if CONFIG_SECURITY_DMESG_RESTRICT is turned on in your #Linux #kernel's .config – which #Fedora recently switched on, something many other distros did already a while ago.\n\n[2] works for the common case, for some fancier stuff you might still need dmesg #LinuxKernel",
"sig": "6fe93989fba7603405ea67544fe3376cf8623e40dfc8b0a436fcfc4f3929df74cf0794b5ad9931a2f50e69e01e682c05545aedf9a77a8044e83dfb9b062bfb51"
}