You are not logged in.

#1 2021-07-18 12:08:56

quellen
Member
Registered: 2014-05-24
Posts: 196

[SOLVED} dmesg doesn't work on normal user

$ dmesg
dmesg: read kernel buffer failed: Operation not permitted

Last edited by quellen (2021-07-18 13:01:59)

Offline

#2 2021-07-18 12:13:09

seth
Member
Registered: 2012-09-03
Posts: 22,279

Re: [SOLVED} dmesg doesn't work on normal user

Yes.

https://man.archlinux.org/man/dmesg.1
https://man.archlinux.org/man/syslog.2.en

cat /proc/sys/kernel/dmesg_restrict

Edit: assuming there was a questionn implied and this isn't a useless PSA.

Last edited by seth (2021-07-18 12:13:36)

Offline

#3 2021-07-18 13:01:47

quellen
Member
Registered: 2014-05-24
Posts: 196

Re: [SOLVED} dmesg doesn't work on normal user

SOLVED adding "kernel.dmesg_restrict=0' on /etc/sysctl.conf


EDIT:
maybe the file is /etc/sysctl.d/99-sysctl.conf

Last edited by quellen (2021-07-22 17:48:21)

Offline

Board footer

Powered by FluxBB