From owner-freebsd-stable Fri May 21 1:25:36 1999 Delivered-To: freebsd-stable@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id DCB9F151F1 for ; Fri, 21 May 1999 01:25:34 -0700 (PDT) (envelope-from des@flood.ping.uio.no) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.1) id KAA78687; Fri, 21 May 1999 10:25:27 +0200 (CEST) (envelope-from des) To: Matt Behrens Cc: Yiorgos Adamopoulos , Michael Robinson , freebsd-stable@FreeBSD.ORG Subject: Re: Astonishingly stupid question References: From: Dag-Erling Smorgrav Date: 21 May 1999 10:25:26 +0200 In-Reply-To: Matt Behrens's message of "Wed, 19 May 1999 08:58:05 -0400 (EDT)" Message-ID: Lines: 21 X-Mailer: Gnus v5.5/Emacs 19.34 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Matt Behrens writes: > On Wed, 19 May 1999, Matt Behrens wrote: > > : I imagine (since I don't have a spare system) :-) that essentially, > : your new init will just happily come up in a single-user, console-only, > : read-only filesystem mode, and be happy doing so. After all, boot > : -s just runs /sbin/init instead of /bin/sh, right? > > Ah, fudge. Swap /bin/sh and /sbin/init in that last sentence... No, it runs '/sbin/init -s', whereupon init(8) starts a shell. If you want to f* around with init(8) replacements, you should at the very least read the source code. Some software may become very confused if you do not establish an initial user and session. See setlogin(2), setsid(2). Apart from that, you can do practically anything you want. DES -- Dag-Erling Smorgrav - des@flood.ping.uio.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message