Sponsored Content
Full Discussion: single user mode
Top Forums UNIX for Advanced & Expert Users single user mode Post 79657 by infierno on Friday 29th of July 2005 11:51:31 AM
Old 07-29-2005
Code:
     The init utility will terminate multi-user operations and resume single-
     user mode if sent a terminate (TERM) signal, for example, ``kill -TERM
     1''.  If there are processes outstanding that are deadlocked (because of

.. this is an output from FreeBSD's init(8) man page... check out your HP-UX init man page, maybe there is the 'secret' Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

single user mode

Hi all, why "vi" acts differently is single user mode? Does anyone help ? I am using "x" to delete and it keeps messing up. Please help Thanks (2 Replies)
Discussion started by: guest100
2 Replies

2. UNIX for Dummies Questions & Answers

Single user mode

Hi all, Well back at work and back to crashing systems again :-) Does anyone know where I can find some decent information on single user mode? I need to be able to fix a few things. Don't know if it's possible in single user mode but I need to fix the "etc/vfstab" mainly I re-wrote it to... (2 Replies)
Discussion started by: merlin
2 Replies

3. UNIX for Dummies Questions & Answers

single-user mode

how do you boot into single user mode? RedHat 7.1 Caldera 2.4 (2 Replies)
Discussion started by: zorro81
2 Replies

4. Solaris

adding a user in single user mode

Just got a solaris 8 blade 150 box with no users, only a root account. no one seems to know the password. I'd like to add one user. So I booted into single user mode via cdrom and added one. Can't seem to login using the new account, though. Here's what I'm using: # useradd -d /tmp/"user" -m... (1 Reply)
Discussion started by: ECBROWN
1 Replies

5. UNIX for Advanced & Expert Users

single user mode

How to diable the single user mode.. what i want is dat my users are unable to boot in single user mode via GRUB.. (1 Reply)
Discussion started by: ankit.jss
1 Replies

6. UNIX for Dummies Questions & Answers

how to Single user mode?

How to enter single user mode when UNIX/LINUX system is starting? (1 Reply)
Discussion started by: gkreddy
1 Replies

7. UNIX for Dummies Questions & Answers

single user mode - user accounts passwords

hello ppl, someone must be able to help with this --> I have an old NCR tower 32 with an ADDS terminal running a unix version 020102 (Im not sure if thats correct but its unix for sure). I have no user names and no passwords and need to login to read a tape. Is there any way to do that? I hear... (3 Replies)
Discussion started by: orestis
3 Replies

8. UNIX for Dummies Questions & Answers

Not able to log into single user mode.

Hi as per the article given. Boot Linux Grub Into Single User Mode I m modifying the boot entry grub edit> kernel /vmlinuz-2.6.18-92.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet Singleand then booting from it by pressing b. However the machine is getting booted into runlevel 5. if the... (2 Replies)
Discussion started by: pinga123
2 Replies

9. Solaris

Single user mode

Hi all I am new on sun OS. I have have little experience on linux. The Story start from this point: I want to put some script on start-up the terminal, but I cant do that. my shell was sh and I tried so much to find way to do that. at last someone said to me change your shell to bash. I ask how... (4 Replies)
Discussion started by: Rahim_T
4 Replies

10. Solaris

Single user mode

Dear All I am trying to install my os as : ok>boot cdrom - install but receiving the following : "IDprom checksum error getexecname() failed /sbin/rcS /etc/vfstab cannot create INIT:failed write utmpx enrty INIT:single user mode INIT:execle of /etc/sulogin failed Enter run level" Can you... (6 Replies)
Discussion started by: hadimotamedi
6 Replies
init(8) 						      System Manager's Manual							   init(8)

Name
       init - process control initialization

Syntax
       /bin/init [ options ]

Description
       The ULTRIX system invokes the command as the last step in the boot procedure.  The system normally then runs the automatic reboot sequence,
       as described in If succeeds, the command begins multiuser operation.  If fails, begins single-user operation  by  giving  the  superuser  a
       shell on the console.

       You  can  use  the command so that parameters are passed from the boot program to so that multiuser operation begins immediately.  When the
       superuser terminates the single-user shell (by pressing CTRL/D), runs the command file without the reboot  parameter.   This  command  file
       performs  housekeeping  operations such as removing temporary files, mounting file systems, and starting daemons.  For further information,
       see

       In multiuser operation, creates a process for each terminal port where a user may log in.  To begin such operations, it reads the file  For
       further information, see For each terminal that is marked ``on'' in the file, forks and invokes the command specified for the current line.
       The command is passed the name of the terminal as the last argument.  The other arguments (if any) are specified after the command  in  the
       file.  Usually, the command is but it may be any command.

       The command reads the user's name and invokes to log in the user and execute the shell.

       Ultimately, the shell terminates because of an end-of-file.  The end-of-file may be typed explicitly or generated as a result of hanging up
       on a terminal line.  The main path of which has been waiting for such an event, wakes up and removes the appropriate entry  from  the  file
       which  records  current users.  The command then makes an entry in which maintains a history of logins and logouts.  The entry is made only
       if a user logged in successfully on the line.  Then the appropriate terminal is reopened and is reinvoked.

       The command catches the signal (signal SIGHUP) and interprets it to mean that the file should be read again.  The  shell  process  on  each
       line  which used to be active in but is no longer there is terminated; a new process is created for each added line; lines unchanged in the
       file are undisturbed.  Thus it is possible to drop or add phone lines without rebooting the system by changing the file and sending a  sig-
       nal to the process, using kill -HUP 1.

       The  command terminates multiuser operations and resumes single-user mode if it receives a terminate (TERM) signal.  That is, the superuser
       types kill -TERM 1.  If there are processes outstanding which are deadlocked (due to hardware or software failure), does not wait for  them
       all to die, but times out after 30 seconds and prints a warning message.

       If receives a terminal stop signal (the superuser types kill -TSTP 1), stops creating new processes and lets the system slowly die away.  A
       later hangup will resume full multiuser operations, or a terminate will initiate a single user shell.  This feature is used by and

       If dies, the system will reboot itself automatically.  If, at bootstrap time, the process cannot be located, the system will loop  in  user
       mode at location 0x13.

Options
       -a   Specifies that the system should autoreboot to multiuser mode.  This option is similar to specifying to the console prompt or specify-
	    ing either with the -r option or from the command line.

       -s   Specifies that the system should boot to single-user mode.

Diagnostics
       WARNING: Something is hung (wont die); ps axl advised
       The system is shutting down and cannot kill a certain process.  This usually occurs when a process cannot exit a device	driver	due  to  a
       persistent device error condition.

       init: `command  tty' failing, sleeping.
       The  command tried to spawn a new process (use the system call) for the command five times.  Each time, the command failed.  This may indi-
       cate that the command was invoked with invalid arguments.  Check the file for errors.  This error message is printed at level LOG_ERR.

       init: exec failed: cmd=	command reason
       The command tried to spawn a new process using the system call for the command.	The failed.  The reason is the explanation produced by the
       routine for why the failed.  This error message is printed at level LOG_ERR.

Files
       Lists current system users

       History of logins and logouts

       The		command reads this file for a command to execute for the terminal line

       Command file executed by

See Also
       ttys(5), getty(8), rc(8), reboot(8)

								       RISC								   init(8)
All times are GMT -4. The time now is 04:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy