i have a hypotetical problem. Assume that I want to educate a kid aged 7 on linux. I do not want him to waste time with youtube kids channels. So I enforced an extension on chrome that blocks these kind of channels. But while learning linux, he might want to delete force installation config files of extension. How can I give him sudo privilege (so he can learn linux with full experience) while preventing him from deleting that config file?
For some cases he could learn workarounds for situations involving being sudoer: Example: for sudo apt install he can actually download source code and compile and install whatever he wants.
But he cannot modify /etc/resolf.conf as a non sudoer.
As far as I know, 2 different sudoers can modify each other's files.
Last but not least, I do not want to change owner of files of OS. What is the correct version to do this?