09-29-2008
Thanks Nua.
As per your definition
S:Single-user, booted to system console only, with only root filesystem mounted (as read-only)
s:Single user, identical to S except the current terminal acts as the system console
1:Single-user with local filesystems mounted (read-write)
if I execute df –h I can see the file system mount which are not part of root file system and after executing the run level as 1 I executing the command df –h I see the same output.
However I go the answer by searching is the forum and as per that if we go down from higher run level to lower run level. Say from init 3 to init 1 or init S/s system never goes to true level S/s. its only go that that level once we boot it from OK prompt with ‘boot –S or boot –s ‘. Also run level 1 need the good /etc/inittab where in same is not required by in the case of run level S/s.
Thanks Experts.
10 More Discussions You Might Find Interesting
1. Filesystems, Disks and Memory
When the solaris 8 have come up, which command can find out the current run-level?
thanks. (2 Replies)
Discussion started by: nianzhe
2 Replies
2. Solaris
Dear Friends..!!
i am quit confused about the SOLARIES RUN level that is 0 . 1 or s S ...
please let me know the diffirence between these run level ... 0,1 and s S...
have a great day
Uday naikwadi (1 Reply)
Discussion started by: udayn
1 Replies
3. SuSE
Hello,
I recently updated a test system from Suse 8 to 9.3. Now our runlevel services program doesn't work, but works fine on our other 9.3 boxes.
We have a file in /etc/init.d/rc3.d called S99fooprog(not actual name ofcourse).
It just has a command to start a program daemon up. Anyways... (3 Replies)
Discussion started by: benefactr
3 Replies
4. Solaris
Hi All,
In Solaris 9 and below
I will get the init run-level by checking the /etc/inittab entry
is:3:initdefault:
But in Solaris 10 we are using the smf functionality.
Here how I can get the init default run level.
Please help me in this problem.
Regards,
... (2 Replies)
Discussion started by: kalpeer
2 Replies
5. Solaris
what are the major Difference Between run level & init level (2 Replies)
Discussion started by: rajaramrnb
2 Replies
6. UNIX for Dummies Questions & Answers
A Bourne Shell script is placed in /etc/rc.d/rc3.d called S57apache. What will happen with this script when the run level is changed from 5 to 3?
many thanks (4 Replies)
Discussion started by: lemon_06
4 Replies
7. Solaris
Hello,
I'm creating a VM Image of Solaris 10 on VM Player. I've completed the installation & I am using the Java Desktop as my default logon. I need to modify the Run Level to Console Mode (permanently). Unlike previous versions or Linux, modifying inittab file is not an option here.
Please... (2 Replies)
Discussion started by: DevendraG
2 Replies
8. Shell Programming and Scripting
Is there a way to tell what runlevel is currently being used,
for example is a user is using the gui
or is the have pressed Alt+Ctrl+F1 to drop to the terminal?? (3 Replies)
Discussion started by: ab52
3 Replies
9. Solaris
Need inputs when physical server is coming down (ex- init 0) .
We have a physical server in that there are couple of LDOM's and in LDOM's there are couple of Zones . In zones there are applications running .
Physical Server (T4 Server) -> LDOM -> ZONES -> applications
There are scripts... (1 Reply)
Discussion started by: ajayram_arya
1 Replies
10. Solaris
for solaris 11, how does one change the run level at boot from 3 to 2?
i checked "/etc/inittab" file where i usually change it in other *nix but it seems solaris is not using it. (1 Reply)
Discussion started by: badbanana
1 Replies
LEARN ABOUT DEBIAN
sulogin
SULOGIN(8) Linux System Administrator's Manual SULOGIN(8)
NAME
sulogin - Single-user login
SYNOPSIS
sulogin [ -e ] [ -p ] [ -t SECONDS ] [ TTY ]
DESCRIPTION
sulogin is 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 the boot loader (e.g., grub(8)) passes it the -b option.
The user is prompted
Give root password for system maintenance
(or type Control-D for normal startup):
If the root account is locked, no password prompt is displayed and sulogin behaves as if the correct password were entered.
sulogin will be connected to the current terminal, or to the optional device that can be specified on the command line (typically /dev/con-
sole).
If the -t option is used then the program only waits the given number of seconds for user input.
If the -p option is used then the single-user shell is invoked with a dash as the first character in argv[0]. This causes the shell
process 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.
ENVIRONMENT VARIABLES
sulogin looks for the environment variable SUSHELL or sushell to determine what shell to start. If the environment variable is not set, it
will try to execute root's shell from /etc/passwd. If that fails it will fall back to /bin/sh.
This is very valuable together with the -b option to init. To boot the system into single user mode, with the root file system mounted
read/write, using a special "fail safe" shell that is statically linked (this example is valid for the LILO bootprompt)
boot: linux -b rw sushell=/sbin/sash
FALLBACK METHODS
sulogin checks the root password using the standard method (getpwnam) first. Then, if the -e option was specified, sulogin examines these
files directly to find the root password:
/etc/passwd,
/etc/shadow (if present)
If they are damaged or nonexistent, sulogin will start a root shell without asking for a password. Only use the -e option if you are sure
the console is physically protected against unauthorized access.
AUTHOR
Miquel van Smoorenburg <miquels@cistron.nl>
SEE ALSO
init(8), inittab(5).
17 Jan 2006 SULOGIN(8)