3 ms·
> I was under the impression that ‘sudo’ was baked into the entire system. Like ‘cd’ or ‘ps’. Neither of these are “baked into the entire system” for any meani
by stouset 3y ago
> I was under the impression that ‘sudo’ was baked into the entire system. Like ‘cd’ or ‘ps’.
Neither of these are “baked into the entire system” for any meaningful sense of the word. `cd` is just a shell builtin and is casually reimplemented in every single shell. It’s just environment state within your session. `ps` is just a binary that (on Linux) parses stuff in /proc.
None of it is magic. Neither is sudo. It’s just a binary like any other (though in sudo’s case, it’s setups, which is how it can cross the permissions boundary).