⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sulogin.8

📁 sysvinit--linux系统下的init
💻 8
字号:
.TH SULOGIN 8 "04 Nov 2003" "" "Linux System Administrator's Manual".SH NAMEsulogin -- Single-user login.SH SYNOPSIS.B sulogin.RB [ " -e " ].RB [ " -p " ].RB [ " -t timeout " ].RB [ " tty-device " ].SH DESCRIPTION.I suloginis invoked by \fBinit(8)\fP when the system goes into single user mode(this is done through an entry in \fIinittab(5)\fP). \fBInit\fP alsotries to execute \fIsulogin\fP when it is passed the \fB-b\fP flagfrom the bootmonitor (eg, LILO)..PPThe user is prompted.IP "" .5iGive root password for system maintenance.br(or type Control-D for normal startup):.PP\fIsulogin\fP will be connected to the current terminal, or to theoptional device that can be specified on the command line(typically \fB/dev/console\fP)..PPIf the \fB-p\fP flag was set, the single-user shell will be invokedwith a \fIdash\fP as the first character in \fIargv[0]\fP. That willcause most shells to behave as a login shell. The default is \fInot\fPto do this, so that the shell will \fInot\fP read \fB/etc/profile\fPor \fB$HOME/.profile\fP at startup..PPAfter the user exits the single-user shell, or presses control-d at theprompt, the system will (continue to) boot to the default runlevel..SH ENVIRONMENT VARIABLES\fIsulogin\fP looks for the environment variable \fBSUSHELL\fP or\fBsushell\fP to determine what shell to start. If the environment variableis not set, it will try to execute root's shell from /etc/passwd. If thatfails it will fall back to \fB/bin/sh\fP..PPThis is very valuable together with the \fB-b\fP flag to init. To bootthe system into single user mode, with the root file system mounted read/write,using a special "failsafe" shell that is statically linked (this exampleis valid for the LILO bootprompt).PPboot: linux -b rw sushell=/sbin/sash.SH FALLBACK METHODS\fIsulogin\fP checks the root password using the standard method (getpwnam)first.Then, if the \fB-e\fP option was specified,\fIsulogin\fP examines these files directly to find the root password:.PP/etc/passwd,.br/etc/shadow (if present).PPIf they are damaged or non-existant, sulogin will start a root shellwithout asking for a password. Only use the \fB-e\fP option if youare sure the console is physically protected against unauthorized access..SH AUTHORMiquel van Smoorenburg <miquels@cistron.nl>.SH SEE ALSOinit(8), inittab(5).

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -