Re: Huge mistake: lost shell :(



»Anthony Perkins« <null@xxxxxxxxxx> wrote:
On 2006-02-21, Anthony Perkins <null@xxxxxxxxxx> wrote:
--snip--
My apologies, I misread the newsgroup header and believed it was a Linux
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.
.



Relevant Pages

  • Re: Login question
    ... press space bar when you see the "press to boot or ..." ... but FreeBSD 5 has a spiffy menu here where you can just select a menu ... item for single-user mode) At the prompt, enter "boot -s" to boot into single- ...
    (freebsd-questions)
  • Re: safe mode
    ... If I boot with safe mode it comes up and identifies the drive but then ... FreeBSD runs but I continue to get these errors: ... Your storage controller is an Intel ICH8, ... SMAP type=02 base=000000000009fc00 len=0000000000000400 ...
    (freebsd-stable)
  • Re: FreeBSD on kvm
    ... i've a problem running freebsd as a guest on linux+kvm. ... when I boot the system it dies and this happens ... We've been running FreeBSD 7 then 8 as a guest in Debian linux/KVM ...
    (freebsd-questions)
  • Re: FreeBSD on kvm
    ... i've a problem running freebsd as a guest on linux+kvm. ... when I boot the system it dies and this happens ... We've been running FreeBSD 7 then 8 as a guest in Debian linux/KVM ... I want say that freebsd work very well under kvm, ...
    (freebsd-questions)
  • Re: Using the boot-easy boot loader..
    ... > I am currently running FreeBSD 5.2.1, installing of OS'es is really not ... > a hard task for me, except this one time and it has to do with WINDOWS ... > Windows XP on my primary C drive, and I goto install the FreeBSD boot ... > freebsd boot loader... ...
    (freebsd-questions)