Linux/Ubuntu

ubuntu dmesg 막혔네?

구차니 2023. 6. 1. 16:11

22.04로 이제야 갈아탔는데

$ dmesg
dmesg: read kernel buffer failed: 명령을 허용하지 않음

 

먼가 이 황당한 시츄에이숑...

debian 시스템에서 변경으로 이걸 풀려면 아래와 같이 root가 아니어도 볼 수 있도록 풀어야지

내 계정을 허용하는 계정으로 추가하는 방법은 없는 듯?

$ echo kernel.dmesg_restrict = 0 | sudo tee -a /etc/sysctl.d/10-local.conf >/dev/null
$ cat /etc/sysctl.d/10-local.conf 
kernel.dmesg_restrict = 0

[링크 : https://unix.stackexchange.com/questions/390184/dmesg-read-kernel-buffer-failed-permission-denied]

[링크 : https://www.reddit.com/r/Kubuntu/comments/ucs15q/dmesg_needs_root_now_2204_what_solution_included/]

[링크 : https://jjeongil.tistory.com/1786]