Date: Wed, 22 Sep 2004 16:49:27 +0200 (CEST) From: "Per Engelbrecht" <per@xterm.dk> To: <freebsd-isp@freebsd.org> Subject: Re: funny customers Message-ID: <65077.62.242.151.142.1095864567.squirrel@mailbox.wingercom.dk> In-Reply-To: <20040922101956.GA13687@neveragain.de> References: <20040922101956.GA13687@neveragain.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?65077.62.242.151.142.1095864567.squirrel>