SINGLE_USER

2004-05-04 Thread Osmany Guirola Cruz
 Why in single-user mode I have direct acces to the root account?
 Why the system does not ask for a password to enter in single-user
mode? 
  

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: SINGLE_USER

2004-05-04 Thread Daniel Bye
On Tue, May 04, 2004 at 08:29:24AM -0400, Osmany Guirola Cruz wrote:
  Why in single-user mode I have direct acces to the root account?

Because it is useful to be able to log in as root in single user mode.
It is generally only used for admin/repair purposes, and not for every
day work.

  Why the system does not ask for a password to enter in single-user
 mode? 

Because you haven't told the system to ask for a password.  In
/etc/ttys, change:

console noneunknown off secure

to:

console noneunknown off insecure

Next time you enter single user mode, you will be prompted for the root
password.

You can test it by running `shutdown now'.

Dan

-- 
Daniel Bye
SA-DEV
PSINet Europe

Brookmount Court
Kirkwood Road
Cambridge CB4 2QH
UK
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: SINGLE_USER

2004-05-04 Thread Brad Tarver
Osmany Guirola Cruz wrote on 05/04/04 07:29 AM:

 Why in single-user mode I have direct acces to the root account?
 Why the system does not ask for a password to enter in single-user
mode? 
  


single user mode can be used to recover your root password among other 
things.

if you want to be prompted for a password, look for this line in /etc/ttys:
consolenoneunknownoffsecure
and change secure to insecure.



--
Brad Tarver, CCNA
btarver[at]idlemind[dot]net
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]