1. Home
  2. Computing & Technology
  3. Focus on Linux
Linux / Unix Command: sulogin
Command Library

NAME

sulogin -- Single-user login  

SYNOPSIS

sulogin [ -e ] [ -p ] [ -t timeout ] [ tty-device ]  

DESCRIPTION

sulogin can be invoked by init(8) when the system goes into single user mode (this is done through an entry in inittab(5)). Init also tries to execute sulogin when it is passed the -b flag from the bootmonitor (eg, LILO).

The user is prompted

Give root password for system maintenance
(or type Control-D for normal startup):

sulogin will connected to the current terminal, or to the optional device that can be specified on the command line (typically /dev/console).

If the -p flag was set, the single-user shell will be invoked with a dash as the first character in argv[0]. That will cause most shells to behave as a login shell. The default is not to do this, so that the shell will not read /etc/profile or $HOME/.profile at startup.

After the user exits the single-user shell, or presses control-d at the prompt, the system will (continue to) boot to the default runlevel.  

SEE ALSO

init(8), inittab(5).


Important: Use the man command (% man) to see how a command is used on your particular computer.

>> Linux/Unix Command Library

>> Shell Command Library

Explore Focus on Linux

More from About.com

  1. Home
  2. Computing & Technology
  3. Focus on Linux

©2008 About.com, a part of The New York Times Company.

All rights reserved.