You can’t chmod Terminal because it’s on the read-only system volume.
yes, i was aware that this might be the case.
but when i checked, Finder tells me it's location is in /Applications/Utilities, so i became unsure.
when i ls that folder in the Terminal, that folder is empty though, except for the two applications i copied there myself.. i guess those links are located on that system volume.
there's similar possibilities like Santa on Linux, even natively inside the OS (at least in some), among other stuff like SELinux, which i might have to look further into.
my question was though, as you mentioned before that Santa could block Terminal, if scripts really require the terminal to be open those commands. i never do scripts, but i never noticed any such requirement.
but this later example example you gave shows, that also those commands can be clocked.
in the end i'm really just a novice when it comes to system security though. i just thought that it might be a good idea to lock out possible maliciously exploitable "invisible" entry points inside some script of which i'm not even alerted of, as basically anyone has the rights to curl, etc.
i'm fully expecting to be asked for the admin password when i'm installing something, or do more critical things on the system configuration, but i might become suspicious if it popped up during web browsing because of some command execution everyone has unrestricted access to per default.
but UNIX (clones) have been used for so long by people MUCH smarter than me, and they seemingly thought that this shouldn't really be such an issue, so i'm basically ok with this behavior too i guess.
and the OS seems to actually require those commands available to anyone anyway (at least on Linux), as the only things i could still do is closing the terminal and funnily opening the calendar. pretty much no other app would run, and entering commands inside the terminal ended with a request to install the package that includes sed.
which of course could not be executed either, as those commands to curl, etc. were not available either.
i couldn't even do a regular shutdown anymore, though i hadn't tried the shutdown command inside the /sbin folder that i hadn't chmodded yet, before i closed that terminal window.
i might tinker with it some more on a new test install, but not on the highest priority as i am sadly occupied by other things at the moment.
this time probably on a VM though