Quote
You will be asked for your admin password the first time and when you type it you won’t see any typing. Just hit return when you are finished entering it.
=*=*=*=*=*=*=*=*=
In addition to setting these limits at the system level, it is recommended, (but not required) that you set the limits at the session level as well by appending the following lines to your bashrc, bashprofile, or analogous file:
Shell
ulimit -n 65536
ulimit -u 2048
Like the plist files, your bashrc or similar file should have -rw-r--r-- permissions.
At this point, you can restart your computer and enter ulimit -n into your terminal. If your system is configured correctly, you should see that maxfiles has been set to 65536.
=*=*=*=*=*=*=*=*=
In addition to setting these limits at the system level, it is recommended, (but not required) that you set the limits at the session level as well by appending the following lines to your bashrc, bashprofile, or analogous file:
Shell
ulimit -n 65536
ulimit -u 2048
Like the plist files, your bashrc or similar file should have -rw-r--r-- permissions.
At this point, you can restart your computer and enter ulimit -n into your terminal. If your system is configured correctly, you should see that maxfiles has been set to 65536.
I followed all the steps (I suppose) correctly, my terminal at this point says:
Quote
sudo chown root:wheel/Library/LaunchDaemons/limit.maxfiles.plist
Password:
usage: chown [-fhnv] [-R [-H | -L | -P]] owner[:group] file ...
chown [-fhnv] [-R [-H | -L | -P]] :group file ...
Password:
usage: chown [-fhnv] [-R [-H | -L | -P]] owner[:group] file ...
chown [-fhnv] [-R [-H | -L | -P]] :group file ...
and:
Quote
sudo chmod 0644/Library/LaunchDaemons/limit.maxproc.plist
usage: chmod [-fhv] [-R [-H | -L | -P]] [-a | +a | =a [# [ n]]] mode|entry file ...
chmod [-fhv] [-R [-H | -L | -P]] [-E | -C | -N | -i | -I] file ...
usage: chmod [-fhv] [-R [-H | -L | -P]] [-a | +a | =a [# [ n]]] mode|entry file ...
chmod [-fhv] [-R [-H | -L | -P]] [-E | -C | -N | -i | -I] file ...
It's everything okay or something is missing? Sorry If I'm asking you all this questions, just trying to figure it out. Also I wanted to know what do you mean by adding
Quote
Shell
ulimit -n 65536
ulimit -u 2048
ulimit -n 65536
ulimit -u 2048
to the basharc or bashprofile and where I have to place this and in which format (plist? or it is basharc a file format?). Do I have to place it in the same Launchdeamon folder i guess?
I restarted my mac and skipped the last step and the file limits are the same as before. And if I put ulimit -n in the terminal I see 256... what does it mean?
Update: I tried to see if the files are in the correct directory running sudo chmod 644 and with both it says "No such file or directory" like the mac doesn't read that at all. I tried to run launchctl limit and like @bourgeoisbanana said, nothing has changed. Could it be that with Catalina things are different? I did again all the steps correctly, I copied the xml into a text and added the .plist extension to all of them and placed them in the launchdeamon folder. I disabled SIP long time ago and I verified if it is still disabled, and it is, so I don't know what I'm doing wrong.