Asking for password in single user

| No Comments | No TrackBacks
If you boot into single user (by hitting space duing the boot process, while the bar is spinning, then typing:
ok boot -s 
), you are dropped into FreeBSD as root, with all its privileges. This might not be a Good Thing if the system console is in an unsafe spot. You can have FreeBSD ask for a password by editing the /etc/ttys file. Change this line:
console none                            unknown off secure
to this:
console none                            unknown off insecure
Now you'll get asked for the root password before single user mode kicks in. Of course, I'm not sure if there is any sort of workaround now, if you forget your root password. The way to fix that in the past is to change it in single user mode (see this for my note on it). You might have to re-install if you forget it now!

No TrackBacks

TrackBack URL: http://linux.amazingdev.com/cgi-bin/mt/mt-tb.cgi/134

Leave a comment

About this Entry

This page contains a single entry by Jonathan published on July 19, 2004 4:50 PM.

Another installation link was the previous entry in this blog.

More on root passwords is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.