Re: Huge mistake: lost shell :(
- From: Rudolf Polzer <usenet@xxxxxxxxxxxxxxxx>
- Date: Wed, 22 Feb 2006 01:11:47 +0000 (UTC)
»Anthony Perkins« <null@xxxxxxxxxx> wrote:
On 2006-02-21, Anthony Perkins <null@xxxxxxxxxx> wrote:My apologies, I misread the newsgroup header and believed it was a Linux
--snip--
newsgroup. I believe the same technique can be used on a FreeBSD box but
I am not so certain how to get the box booting into single-user mode with
the FreeBSD bootloader.
Usually it asks you to press a key to get into single user mode. If it
does not and you can get a boot loader shell, "boot -s" is the answer -
IIRC you have a "help" command available at that point. However I just
checked it... and "help" at the boot prompt tells you quite many things,
but not, that you go into single user mode with "boot -s" ;)
"man boot" shows you a bit more:
-s boot into single-user mode; if the console is
marked as ``insecure'' (see ttys(5)), the root
password must be entered.
However, does marking the console as insecure really help against
attackers who get access to the boot prompt? If they also are local
users, can't they just put a kernel image in /tmp and boot that then? Or
does boot refuse to load kernels which are not owned by root?
And IIRC the mount command is
mount -w -u /
where -w is the "rw" and -u the "remount".
--
hosh: only honk can do that.
.
- References:
- Huge mistake: lost shell :(
- From: Jean-Yves Avenard
- Re: Huge mistake: lost shell :(
- From: Francis Gudin
- Re: Huge mistake: lost shell :(
- From: Jean-Yves Avenard
- Re: Huge mistake: lost shell :(
- From: Torfinn Ingolfsen
- Re: Huge mistake: lost shell :(
- From: Anthony Perkins
- Re: Huge mistake: lost shell :(
- From: Anthony Perkins
- Huge mistake: lost shell :(
- Prev by Date: Re: Huge mistake: lost shell :(
- Next by Date: Re: Huge mistake: lost shell :(
- Previous by thread: Re: Huge mistake: lost shell :(
- Next by thread: Re: Huge mistake: lost shell :(
- Index(es):
Relevant Pages
|