Announcement

Collapse
No announcement yet.

[NEVERMIND]Interesting Semi-Breakage

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [NEVERMIND]Interesting Semi-Breakage

    So this evening I turned on my wonderful, reliable laptop and two things happened. The mouse was unresponsive (but the touch pad worked and still works). Fixed the mouse.

    The other is a bit more serious. While trying to look for errors during boot (to research the mouse problem), i opened Konsole and entered
    dmesg
    It responded with
    dmesg: read kernel buffer failed: Operation not permitted
    I can run dmesg with sudo, but I'm not sure what could have caused the change to REQUIRE sudo for dmesg. I think the only update yesterday noted by a system tray notice form Discover was a single python package - which I ran.

    I have rebooted a couple of times. The mouse still works, but dmesg is still being obstreperous. Any ideas?
    Last edited by jglen490; May 28, 2024, 08:48 PM.
    The next brick house on the left
    Intel i7 11th Gen | 16GB | 1TB | KDE Plasma 5.27.11​| Kubuntu 24.04 | 6.8.0-31-generic




    #2
    Well, nevermind! Someone just now got around to implementing the change for So
    sudo dmesg
    it is from now on!
    The next brick house on the left
    Intel i7 11th Gen | 16GB | 1TB | KDE Plasma 5.27.11​| Kubuntu 24.04 | 6.8.0-31-generic



    Comment


      #3
      The correct action to fix this is to edit /etc/sysctl.d/10-kernel-hardening-conf and remove the remark from the last line:

      # kernel.dmesg_restrict = 0
      so it reads:

      kernel.dmesg_restrict = 0

      Please Read Me

      Comment


        #4
        Thank you! You are the man. Probably requires a reboot?
        The next brick house on the left
        Intel i7 11th Gen | 16GB | 1TB | KDE Plasma 5.27.11​| Kubuntu 24.04 | 6.8.0-31-generic



        Comment


          #5
          Since it's a kernel parameter I would assume yes.

          Please Read Me

          Comment


            #6
            Actually, this might work:

            sudo sysctl --system

            Or

            sudo sysctl -p

            Please Read Me

            Comment


              #7
              That was special
              The next brick house on the left
              Intel i7 11th Gen | 16GB | 1TB | KDE Plasma 5.27.11​| Kubuntu 24.04 | 6.8.0-31-generic



              Comment


                #8
                Originally posted by oshunluvr View Post
                Actually, this might work:

                sudo sysctl --system

                Or

                sudo sysctl -p
                I tried the second option first and it didn't work. The first option did!
                "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                – John F. Kennedy, February 26, 1962.

                Comment


                  #9
                  Originally posted by GreyGeek View Post

                  I tried the second option first and it didn't work. The first option did!
                  Aha, it seems it should have been:

                  Code:
                  sudo sysctl -p /etc/sysctl.d/10-kernel-hardening.conf

                  Please Read Me

                  Comment


                    #10
                    … because sysctl -p only reads /etc/sysctl.conf by default and not all configuration files like sysctl --system does.

                    As oshunluvr additionally wrote you would have to specify the configuration file.
                    Last edited by Schwarzer Kater; May 30, 2024, 06:00 AM.
                    Debian KDE & LXQt • Kubuntu & Lubuntu • openSUSE KDE • Windows • macOS X
                    Desktop: Lenovo ThinkCentre M75s • Laptop: Apple MacBook Pro 13" • and others

                    get rid of Snap script (20.04 +)reinstall Snap for release-upgrade script (20.04 +)
                    install traditional Firefox script (22.04 +)​ • install traditional Thunderbird script (24.04)

                    Comment

                    Working...
                    X