Path: csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Lew Pitcher Newsgroups: comp.unix.shell Subject: Re: ed Date: Thu, 11 Jun 2026 00:24:43 -0000 (UTC) Organization: The Pitcher Digital Freehold Lines: 62 Message-ID: <110cv8a$143nt$1@dont-email.me> References: <1108b56$b00$1@nntp.sonologic.net> <1109qej$2vlaa$1@dont-email.me> <110abmr$ckmk$12@dont-email.me> <110cmrj$32trj$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 11 Jun 2026 00:24:43 +0000 (UTC) Injection-Info: dont-email.me; logging-data="1183485"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+1GJNIAyG3fDHpMgM2LXOMU+KMb6+6pIU="; posting-host="b5dd7b69fd4330affe1c69aae295bfac" User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Cancel-Lock: sha1:yxqZx3/NXN9ys3RiViUcFAT1ER0= sha256:tS+oOK2MN5GAIby8/jm+JuQ4HMfNoVBWDWsnqyaB7oU= sha1:cVD3QjfeZP74v0Qa3zoCi4vYLNg= Xref: csiph.com comp.unix.shell:26885 On Wed, 10 Jun 2026 22:01:23 +0000, John McCue wrote: > Lawrence D?Oliveiro wrote: >> On Tue, 9 Jun 2026 19:44:19 -0000 (UTC), John McCue wrote: >> >>> There is one use for ed(1), when I boot NetBSD into single user >>> mode, ed(1) is the only one available without jumping through hoops. >> >> Why is that? Is it because NetBSD still has the legacy root-versus-usr >> separation of executables and libraries? > > From what I have seen, seems Linux does not have a real single > user mode. But I think that is OK for Linux. > > NetBSD and the other BSDs have real single user mode where no > file systems are mounted, no daemons are started and root is > mounted RO. NetBSD boots into /bin/sh or a shell of your > choice and you work from that, no login needed. Also I think > only static executables are available for use. Oh, do you mean initlevel "S" or "s"? As in: si:S:sysinit:/etc/rc.d/rc.S su:1S:wait:/etc/rc.d/rc.K 20:21:14 $ head /etc/rc.d/rc.S #!/bin/sh # # /etc/rc.d/rc.S: System initialization script. # # Mostly written by: Patrick J. Volkerding, # 20:22:43 $ head -12 /etc/rc.d/rc.K #! /bin/sh # # rc.K This file is executed by init when it goes into runlevel # 1, which is the administrative state. It kills all # daemons and then puts the system into single user mode. # Note that the file systems are kept mounted. # # Version: @(#)/etc/rc.d/rc.K 3.1415 Sat Jan 13 13:37:26 PST 2001 # # Author: Miquel van Smoorenburg # Modified by: Patrick J. Volkerding # Like Slackware?? > I do not know what "legacy root-versus-usr" means, I would > never want a system that does not have a clear separation > between root and users. Agreed. Although the OP might have meant the current (IMHO aberrant) trend of dispensing with the /bin vs /usr/bin (etc) dichotomy. -- Lew Pitcher "In Skills We Trust" Not LLM output - I'm just like this.