Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've been trying to find out how to activate that I'm prompted for a password when i boot in single user mode under linux, but I can't find it.

Where can I set this option?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

You'll need to add an entry to your /etc/inittab

su:S:wait:/sbin/sulogin

should do it.

This will force sudo, which requires a login password.

share|improve this answer
    
thanks, does that differ between debian-based and rh-based distributions? –  user857990 Aug 24 '12 at 10:59
    
It shouldn't - both use /etc/inittab –  Rory Alsop Aug 24 '12 at 11:01

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.