LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Editing sysctl.conf (https://www.linuxquestions.org/questions/linux-newbie-8/editing-sysctl-conf-906029/)

Plymouth 10-02-2011 05:14 AM

Editing sysctl.conf
 
I'm trying to automatically adjust the ping rate at startup by inserting the command sysctl -w net.ipv4.icmp_echo_ignore_all=1 into the sysctl.conf file.

However, I cannot open the file.

Any suggestions please?

acid_kewpie 10-02-2011 05:31 AM

sysctl.conf is, as the name suggests, a *config* file, not a script, you wouldn't add it. As to why you can't open it, that doesn't really make any sense. It should be world readable. you wouldn't be able to save it without being root, but as you've not explained at all what you're doing to try to open it, or what actually happens it's hard to comment. open a terminal and become root, then run "vi /etc/sysctl.conf" and it will be there for you.

dudeman41465 10-02-2011 05:35 AM

You can just add it to your /etc/rc.local startup script. That's what I do to get Avast to run because I have to use sysctl to increase the shmax, or else Avast! for Linux crashes.


All times are GMT -5. The time now is 10:45 AM.