5

I know there's *.conf file in /usr/lib/sysctl.d and/or /etc/sysctl.d folders ready to establish kernel parameters on boot. But they are general; what I want is to customize some of these parameters (say, net.ipv4.icmp_echo_ignore_all) depending on the user who is in, but I want per-user kernel parameters. Is it possible or what I'm saying is a complete silliness?

4

What @Tomasz says it's true: those are kernel parameters, so they are "unique"!

Anyway, you can achieve some result with that limit


...in the OP, @Osqui doesn't say users are simultaneously logged in...


by sketching out a script executed when users login/logout using the sysctl command

| improve this answer | |
  • Thanks! It's a good tip! – Osqui Nov 9 '19 at 17:42
3

These are kernel parameters and the kernel is shared by all users. As long as your system is supposed to be used by multiple users simultaneously there's no way these parameters could have multiple values at once. And there are normally many various users (personalities) active (owing processes) even if there's only one human user in front of the screen.

| improve this answer | |
  • Thanks. I suspected that but thanks for clarification! – Osqui Nov 9 '19 at 17:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.