Red Hat Bugzilla – Bug 52271
Command "init 1" brings strange shell.
Last modified: 2014-03-16 22:22:56 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.75 [ja] (WinNT; U)
Description of problem:
The command "init 1" meens to be single user mode, but on
RH7.2beta, this causes a strange key input.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
2.login as root.
Actual Results: sh-2.05# ps
sh: s: command not found
Expected Results: sh-2.05# ps
PID TTY TIME CMD
6426 pts/0 00:00:00 su
6428 pts/0 00:00:00 bash
6474 pts/0 00:00:00 sh
6475 pts/0 00:00:00 ps
If you input "exit" immediately after "init 1", you can input any command normaly.
I guess this is caused by multiple shell on runlevel 1.
But runlevel 1 is very useful and needed for many administrator, hence this
SHOULD be fixed.
What version of util-linux do you have installed?
util-linux is 2.11f-5.
SysVinit is 2.78-18.
initscripts is 6.10-1.
This is fixed in util-linux-2.11f-8.