funny customers
Per Engelbrecht
per at xterm.dk
Wed Sep 22 07:44:56 PDT 2004
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 at xterm.dk
>
> - D.
More information about the freebsd-isp
mailing list