- Posts: 22011
- Thank you received: 7491
Installing LCNC on Beelink BT3 PRO II
- BeagleBrainz
- Visitor
-
5 years 4 months ago - 5 years 4 months ago #211795
by BeagleBrainz
Replied by BeagleBrainz on topic Installing LCNC on Beelink BT3 PRO II
Is that with a standard kernel, debian rt or my rt kernel.
hmmm maybe I changed the dmesg permission
But this means I must have done it on ALL Mint installations on ALL machines, even those that have multiple versions of Mint.
Ok it's not that, I deleted /bin/dmesg then reinstalled util-linux (package for dmesg) & permissions were the same.
OK Dave you may have to run the dmesg command with sudo in front of it.
Hey Tommy just for interest can you run:
If you get something other than 0 can you try,
Then try dmesg without sudo
To go back to previous, ie sudo requires dmesg
OK found out that there is a kernel config option that changes the operation of dmesg, to do with wether a user can read log.
The kernel I built, taken the default config from a std Mint kernel, allows a normal user to use dmesg without using sudo, the debian RT kernel does not allow this behaviour.
hmmm maybe I changed the dmesg permission
Code:
rmurphy@thinkPad-t530:~$ ls -la /bin/dmesg
-rwxr-xr-x 1 root root 72000 Sep 17 2020 /bin/dmesg
But this means I must have done it on ALL Mint installations on ALL machines, even those that have multiple versions of Mint.
Ok it's not that, I deleted /bin/dmesg then reinstalled util-linux (package for dmesg) & permissions were the same.
OK Dave you may have to run the dmesg command with sudo in front of it.
Hey Tommy just for interest can you run:
Code:
cat /proc/sys/kernel/dmesg_restrict
Code:
sudo sysctl -w kernel.dmesg_restrict=0
Then try dmesg without sudo
To go back to previous, ie sudo requires dmesg
Code:
sysctl -w kernel.dmesg_restrict=1
OK found out that there is a kernel config option that changes the operation of dmesg, to do with wether a user can read log.
The kernel I built, taken the default config from a std Mint kernel, allows a normal user to use dmesg without using sudo, the debian RT kernel does not allow this behaviour.
Last edit: 5 years 4 months ago by BeagleBrainz.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
-
Less
More
5 years 4 months ago #211820
by tommylight
Replied by tommylight on topic Installing LCNC on Beelink BT3 PRO II
The following user(s) said Thank You: BeagleBrainz
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
-
Less
More
- Posts: 22011
- Thank you received: 7491
5 years 4 months ago #211830
by tommylight
Replied by tommylight on topic Installing LCNC on Beelink BT3 PRO II
Some info on the picture above, there are all the lines run and the version of kernel, all this is on Linux Mint 19.3 with all the latest updates, and sure enough the kernel is from the Debian Stretch repository.
As can be seen above, the line proposed by Beagle does it's magic and now dmesg works with no sudo privileges.
Thank you Beagle.
As can be seen above, the line proposed by Beagle does it's magic and now dmesg works with no sudo privileges.
Thank you Beagle.
Please Log in or Create an account to join the conversation.
- BeagleBrainz
- Visitor
-
5 years 4 months ago #211832
by BeagleBrainz
Replied by BeagleBrainz on topic Installing LCNC on Beelink BT3 PRO II
Not too sure if that with survive a reboot.
Although we haven’t sorted dave’s Issue we’ve learnt something.
Sorry about going off topic.
Although we haven’t sorted dave’s Issue we’ve learnt something.
Sorry about going off topic.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
-
Less
More
- Posts: 22011
- Thank you received: 7491
5 years 4 months ago #211834
by tommylight
Replied by tommylight on topic Installing LCNC on Beelink BT3 PRO II
It did not.BeagleBrainz wrote: Not too sure if that with survive a reboot.
Please Log in or Create an account to join the conversation.
- htdave
- Offline
- Senior Member
-
Less
More
- Posts: 55
- Thank you received: 0
5 years 4 months ago #212062
by htdave
Replied by htdave on topic Installing LCNC on Beelink BT3 PRO II
Hi Guys,
I'm pretty flat out at the moment, so haven't had a chance to check. will hopefully get there later in the week.
Thanks
I'm pretty flat out at the moment, so haven't had a chance to check. will hopefully get there later in the week.
Thanks
Please Log in or Create an account to join the conversation.
Time to create page: 1.531 seconds