Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Need Help to Reboot to Mac OS X Post 302118212 by philomaximus on Sunday 20th of May 2007 11:22:26 AM
Old 05-20-2007
Quote:
Originally Posted by porter
Are you at a shell prompt at a console?

Are you able to either log in as root or su to root?

Can you run "ps -ef" to show all processes running?

Have to tried "shutdown -h now" to power down the box down cleanly.

Can you run "top" and see what's busy?
Hello! Just so you know, I am even newer than a newbie, so you'll have to talk to me like I'm five.

Yes, I'm at a shell prompt.

I tried logging in with my system name and password, but it came up as incorrect.

I typed in the "ps -ef" and this is what I got: ps: illegal option --f usage: ps [-aChjlmMrSTuvwx] [0|o fmt] [-p pid] [-t Hy] [-U user] [-N system] [-W swap] ps [-L]

Shutdown -h now works -- yea! I didn't know how to do that before.

Top brings up a bunch of stuff. Top line reads Processes: 5 total, 2 running, 3 sleeping.

I am also able to change directories and see that my folders and files are still there.
 

2 More Discussions You Might Find Interesting

1. Solaris

different between soft reboot and hard reboot

Hi Guru's Can any want here could explain to me the different between soft reboot and hard reboot . Best Regards Seelan (3 Replies)
Discussion started by: seelan3
3 Replies

2. BSD

MAC at @reboot, like some cellphone

I want to change my MAC at reboot, so making it a cron job like the following in BSD. Can I do this in the jail for the user, setting it as a command or should it be a script? I would set it as a command openssl rand -hex 6 | sed 's/\(..)/\1:/g; s/.$//' just to test it, it works. To... (0 Replies)
Discussion started by: 1in10
0 Replies
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, as is the default on Ubuntu, 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)
All times are GMT -4. The time now is 07:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy