Sujet : Re: Yet Another New systemd Feature
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.os.linux.miscDate : 08. May 2024, 00:06:31
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v1e8l7$3gdjl$1@dont-email.me>
References : 1 2 3 4 5 6
User-Agent : Pan/0.155 (Kherson; fc5a80b8)
On Tue, 7 May 2024 16:00:10 -0000 (UTC), candycanearter07 wrote:
Lawrence D'Oliveiro <ldo@nz.invalid> wrote at 22:00 this Monday (GMT):
>
Pro tip: one of the commands you can feed to sudo is “/bin/bash”.
That's basically the same as sudo su..
Let’s see: you create a process to run sudo, which does privilege checks
and creates a process to run su, which runs privilege checks and spawns
your actual command.
I just checked, and for some reason sudo itself needs two processes to do
its stuff. So that’s *three* processes, not including your actual command.