stay in multi user mode but stop logins to system?


 
Thread Tools Search this Thread
Operating Systems Solaris stay in multi user mode but stop logins to system?
# 8  
Old 02-24-2009
Use this:
Quote:
svcadm milestone -d multi-user
At this point, everybody other than root will get kicked off the system. If you have a ssh connection open and you have su'd to rrot, that connection will *not* be dropped.

Then once when you are done patching and gone through your final reboot, you can revert back to run level 3/multi-user-server as:
Quote:
svcadm milestone -d all
If you don't specify "all", you don't get a "console login: " prompt on the console; you get a "Enter root password for system maintenance. CTRL-D to bypass".

Last edited by frozentin; 02-24-2009 at 05:42 AM.. Reason: elaborated response
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Homework & Coursework Questions

Help with unix commands for user logins

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: List the last 3 times you logged into the hottub and the command(s) you used to obtain this information 2.... (12 Replies)
Discussion started by: iw2198
12 Replies

2. BSD

single user mode under system v

Hello! I am new to the forum and I need help on restoring root user's password or access the form of single user mode under operating system very long-standing family bsd - Unix system V I think it's also called srv4. I managed to enter the owner of IPL, and a moment after the rise of system... (2 Replies)
Discussion started by: hmalool
2 Replies

3. Solaris

User Logins

Is the below logins are needed in the machine..... nuucp , uucp ,smmsp , svctag , listen , webservd , ip ( We are not using printers), Can you help in these? Regards, kumar (3 Replies)
Discussion started by: rajeshkumarvg
3 Replies

4. AIX

Logging user logins

I want to know how I can turn off and turn on login logging. We have a server that appears to have stopped logging user logins. Running the who command shows nothing and the last command shows no logins for a month. The var/adm/wtmp file isn't full and there is plenty of space in the var file... (2 Replies)
Discussion started by: daveisme
2 Replies

5. SCO

file system not getting mounted in read write mode after system power failure

After System power get failed File system is not getting mounted in read- write mode (1 Reply)
Discussion started by: gtkpmbpl
1 Replies

6. HP-UX

how to distinguish standard system mode or trust system mode

I think that if the directory /tcb exists, HP-UX is in trusted mode and the passwd data is somewhere in /tcb/files/auth. But that's all I remember. Also I think recent versions of HP-UX can have a /etc/shadow file. (0 Replies)
Discussion started by: Perderabo
0 Replies

7. UNIX for Dummies Questions & Answers

Linmit user logins

Hello everyone, traditionally a user can log in on more than one machine as much as they want. In AIX 4.3, Is there a way to make it so that if the user is already logged on, the system will not let them log on, therefor not run their logon profile script again? (limit the user to one machine at a... (1 Reply)
Discussion started by: raidzero
1 Replies

8. UNIX for Dummies Questions & Answers

Urgent - Single User Mode -Unisys System V Release 4.0

Hello All, I have a Unisys 6000/65 machine running Unix System V Release 4.0.My problem is that we received an error that said "SPCS error occurred"and "vxfs:vx -ilisterr-inode 62585 mark bad /filesystem".The machine was stuck and I had to restart it.Now I cannot login from any workstation or... (2 Replies)
Discussion started by: liverpool
2 Replies

9. UNIX for Dummies Questions & Answers

Multi User Multi Task

Dear Experts Why we always hear that unix operating system is Multi User and Multi task. What does these two means. I have looked at some books and documents but couldn't find aclear explenation. Can we say Windows operating system is also multi user and multi task?? Thanks for your help in... (6 Replies)
Discussion started by: Reza Nazarian
6 Replies

10. UNIX for Dummies Questions & Answers

Poor resourece allocation (multi-user system)

All, I am an intermediate user, and am running SAS on a nice Solaris machine. However, even when top says that no other programs are running, the machine will only give me 5-7% processor power. Is this a configuration problem with SAS or the way the server is configured? Is there any way I can... (3 Replies)
Discussion started by: dj_is
3 Replies
Login or Register to Ask a Question
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)