Deutsch English Français Italiano |
<v1ckm5$34d8u$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 07:19:34 -0000 (UTC) Organization: A noiseless patient Spider Lines: 14 Message-ID: <v1ckm5$34d8u$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> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 07 May 2024 09:19:34 +0200 (CEST) Injection-Info: dont-email.me; posting-host="30173f80060481ed31259743c2a7c1a1"; logging-data="3290398"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19M6iIQndZ0sTz1QfNN4qsE" User-Agent: Pan/0.155 (Kherson; fc5a80b8) Cancel-Lock: sha1:KwLISddDPDv0srkGqRjSj4GbCls= Bytes: 1747 On Mon, 6 May 2024 22:00:06 -0000 (UTC), Lawrence D'Oliveiro wrote: > Pro tip: one of the commands you can feed to sudo is “/bin/bash”. And for added points, you know how you open a terminal as an ordinary user, only to type “sudo /bin/bash” into it? But that means you create a process running “sudo”, which in turns spawns the process running bash. Thus, to terminate the session, you have to type CTRL/D twice. Whereas, if the command you typed was “exec sudo /bin/bash”, then you only spawn one process, and only need one CTRL/D to terminate. Of course, if you get your password wrong, you lose the terminal window and have to open it again ...