From owner-freebsd-isp@FreeBSD.ORG Wed Sep 22 14:44:56 2004 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 88D0B16A4CE for ; Wed, 22 Sep 2004 14:44:56 +0000 (GMT) Received: from mailbox.wingercom.dk (mailbox.wingercom.dk [81.19.240.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 43CE043D31 for ; Wed, 22 Sep 2004 14:44:56 +0000 (GMT) (envelope-from per@xterm.dk) Received: from mailbox.wingercom.dk (localhost.wingercom.dk [127.0.0.1]) by mailbox.wingercom.dk (Postfix) with SMTP id 29AF0931DF for ; Wed, 22 Sep 2004 16:49:27 +0200 (CEST) Received: from 62.242.151.142 (SquirrelMail authenticated user per) by mailbox.wingercom.dk with HTTP; Wed, 22 Sep 2004 16:49:27 +0200 (CEST) Message-ID: <65077.62.242.151.142.1095864567.squirrel@mailbox.wingercom.dk> Date: Wed, 22 Sep 2004 16:49:27 +0200 (CEST) From: "Per Engelbrecht" To: In-Reply-To: <20040922101956.GA13687@neveragain.de> References: <20040922101956.GA13687@neveragain.de> X-Mailer: SquirrelMail (version 1.2.5) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: Re: funny customers X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2004 14:44:56 -0000 Hi Dennis > > On Wed, Sep 22, 2004 at 11:45:13AM +0200, Per Engelbrecht wrote: >> But right now I need a way to bypass (I don't think it's possible) >> the single_user mode root login feature. > > Just an idea (as it doesn't work ;) ... > > A trick known from linux is to boot the kernel with /bin/sh instead > of /sbin/init. You'd do "set init_path=/bin/sh" for that in the > loader. This would bypass the usual startup and thus you won't be > asked for the password. > > However, i just tried this and it doesn't work. The sh immediately > exists and consequently the kernel panics. Don't know what's the > problem there... Hmm .. I'm not sure why, but in FreeBSD both csh (default root shell ... *&#@$!) and sh are linked static and tampering with these from the boot-process through /sbin/init (which is the last part of the boot-process anyway) is something I wouldn't do. Creative thinking though :) Thank you Dennis. respectfully /per per@xterm.dk > > - D.