Hi Friends! This is the second post of the day and eventually it’s also dedicated to Linux. We know about the Single User mode in Linux and you can easily switch to runlevel1 by just issuing init 1 command from the command line. But the problem here is that it doesn’t ask for any password. You know that all the maintenance task are performed at runlevel 1 and therefore it’s too critical to allow password free access. So here we’ll password protect runlevel 1 or Single User mode.

The task is not a daunting one. Just open your /etc/inittab file and write down the following line just above the initdefault line-

  • su:S:wait:/sbin/suloginRestrict Access To Single User Mode In Linux

Now whenever you issue init 1 command you’ll be asked to enter root password before you get access.