Date: 21 May 1999 10:25:26 +0200 From: Dag-Erling Smorgrav <des@flood.ping.uio.no> To: Matt Behrens <matt@zigg.com> Cc: Yiorgos Adamopoulos <adamo@dblab.ece.ntua.gr>, Michael Robinson <robinson@netrinsics.com>, freebsd-stable@FreeBSD.ORG Subject: Re: Astonishingly stupid question Message-ID: <xzpbtferfrd.fsf@localhost.ping.uio.no> In-Reply-To: Matt Behrens's message of "Wed, 19 May 1999 08:58:05 -0400 (EDT)" References: <Pine.BSF.4.10.9905190857320.5548-100000@megaweapon.zigg.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Matt Behrens <matt@zigg.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpbtferfrd.fsf>