13 November 2007

Password protect single user mode in Linux

The single user mode in Linux is considered the rescue mode.However,anyone who gets physical access to the machine could easily change the root password by booting into single user mode.

This is a security concern in Linux.

So to password protect the single user mode,add/append the following line in your
/etc/inittab file:

su:S:wait:/sbin/sulogin

Now,whenever the system is booted in single user mode,it'll first prompt for the 'root' password.

No comments: