You are not logged in.

#1 2021-08-15 03:13:53

hevin
Member
Registered: 2021-08-14
Posts: 63

sudo commands

Early i executed command  "dmeg" from regular user and dmesg showed me kernel messages, but after update it doesn't with error message "Permission deny" Strace dmesg from regular user shows that error appear when dmesg try to open /dev/kmsg. When i do same from root or sudo dmesg - it;s works.
When i create netns and execute in it sudo -u username bash i have bash command in netns with regular user privileges. in it shell i do ping x.x.x.x and there is eror "permission deny" but without netns from regular user command ping works without error.
Please tell me what, what config, software determines the necessary privileges to execute this or that command?

I find some "biltin" groups, where can i find their descriptions, what privileges its gives?
for example i have adm,wheel,root groups what differents between them or storage,disks or sys,daemon or video,render?
if my regular user doesn't includes in group video and render does it mean that graphical enviroment doesn't work for this user?

Offline

#2 2021-08-15 04:56:12

SimonJ
Member
From: Spain
Registered: 2021-05-11
Posts: 361
Website

Re: sudo commands


Rlu: 222126

Offline

#3 2021-08-15 06:07:12

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,365

Re: sudo commands

"dmesg" - the ringbuffer access was disabled by default in the kernel config rather recently-ish, see eg.
https://www.reddit.com/r/archlinux/comm … r_anymore/

Offline

Board footer

Powered by FluxBB