Enable user authentication for single user mode

Posted: August 7, 2013 in Uncategorized
By default you will be automatically logged in to single user mode as root, this can be security risk so better to enable a user login add the single user mode.
RHEL/CentOS & most of the unix OS allows access from the console into single user mode without a password. This is handy when things get messed up preventing access to the auth subsystems. To accomplish the same behavior under Ubuntu, edit the /etc/inittab file and change the line.
Step 1 : Edit /etc/inittab file
[root@afzalkhan ~]# vi /etc/inittab
Step 2 : Add following entry at end of the file
Step 3 : Save & Exit this file.
Try booting your machine in level 1 to check this security feature.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s