Deutsch English Français Italiano |
<v1e8l7$3gdjl$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro <ldo@nz.invalid> Newsgroups: comp.os.linux.misc Subject: Re: Yet Another New systemd Feature Date: Tue, 7 May 2024 22:06:31 -0000 (UTC) Organization: A noiseless patient Spider Lines: 14 Message-ID: <v1e8l7$3gdjl$1@dont-email.me> References: <v1941f$24d4m$1@dont-email.me> <v1a0j2$2eb40$1@dont-email.me> <l9ris7F74e0U1@mid.individual.net> <v1ac52$2gs3r$2@dont-email.me> <v1bjt6$2q1db$9@dont-email.me> <v1dj69$3bb64$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 08 May 2024 00:06:32 +0200 (CEST) Injection-Info: dont-email.me; posting-host="1822188738f589222356150800fb9063"; logging-data="3683957"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18t8CqB5cQxqfRudUh5ooW8" User-Agent: Pan/0.155 (Kherson; fc5a80b8) Cancel-Lock: sha1:/Wrrr05x+tf/AP0UtBHLbCC75UQ= Bytes: 1687 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.