Lab 25.2 the echo method requires you to be root; sudo won’t work.
There is a note in 25.2 "In the below we are going to use two methods, one involvingsysctl, the other directly echoing values to/proc/sys/kernel/pid_max. Note that theechomethod requires you to be root;sudowon’t work. We’ll leave it to you to figureout why, if you don’t already know!"
The method mentioned is:
$ echo 24000 > /proc/sys/kernel/pid_max # This must be done as root
I can't figure out why. Can someone help?