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?

2 Answers 2


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

  • Thanks! It's a good tip!
    – Osqui
    Nov 9, 2019 at 17:42

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.

  • Thanks. I suspected that but thanks for clarification!
    – Osqui
    Nov 9, 2019 at 17:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .