The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   Tweaking OS X / Wish List (http://hintsforums.macworld.com/forumdisplay.php?f=25)
-   -   Enabling "Other User" in 10.2/10.3 (http://hintsforums.macworld.com/showthread.php?t=16395)

yellow 10-27-2003 01:33 PM

Quote:

Originally posted by mervTormel
hmm, i can get a shell via login [ >console ] after a fresh boot.

after a user login/logout, it hangs in a /usr/libexec/getty process.

not sure it's not doable. others?
I have the same experience.

chabig 10-27-2003 10:31 PM

Yes. I wonder what the correct syntax is.

Chris

Leo_de_Wit 10-28-2003 04:09 AM

Quote:

Originally posted by chabig
Yellow--that's what I get too. But Mac Help says "sudo shutdown now."

Open Mac Help and search for "starting up in console mode."

Chris
I'd say: Mac Help, shutup now! :p
Quote:

Originally posted by yellow

So I'm curious where chabig got 'sudo shutdown now' from the terminal
would send you to single user mode.
Perhaps by pressing Cmd-S at the moment of reboot?
I'm assuming he's using 'sudo shutdown -r now', since shutdown must know what to do.

About options for shutdown:
I found out by looking at the man page for it on a SCO Unix box,
that it has an optional su argument :
Code:

The optional su argument lets the system go single-user
without completely shutting it down.
(This option is identical to -i1 and is present
for backwards compatibility with XENIX).

and also:
Code:

-i[0156abcsS]

    Specifies the init level to bring the system to (see init(M)).
    By default, the system is brought to level 0.

P.S. yellow, congrats on reaching Hall of Fame status! :cool:

Leo

yellow 10-28-2003 07:21 AM

Quote:

Originally posted by Leo_de_Wit
P.S. yellow, congrats on reaching Hall of Fame status! :cool: Leo
Thanks! 2500 pieces of bad advice and counting! :)

justinp 10-28-2003 10:01 AM

I know for a fact that you can use the terminal to drop into single user mode, from the GUI environment. I've done it.

And I'm 98% sure I did it with sudo shutdown now in 10.2.8 (I got the hint off of this site, actually.)

I can't verify until I get home, though.

EDIT: OK, I don't know if it was single user mode, but it was a similar screen, it was that or >console, or some equivalent.

yellow 10-28-2003 10:20 AM

OK, I just tried it on 10.2.8 and it worked. It dumped you into single user mode. However, it doesn't work for Panther, so you'll have to stick to cmd-s on boot.

chabig 10-28-2003 07:55 PM

There must be a way in Panther...perhaps one of those other command line options.

Chris

Leo_de_Wit 10-29-2003 08:28 AM

Quote:

Originally posted by chabig
There must be a way in Panther...perhaps one of those other command line options.

Chris
Hi Chris!
Checked them here (no access to a Mac at the moment).

Could not find how to set runlevels upon reboot, though.
Perhaps a combination of tools would do the trick (sync, reboot, etc.)

Though e.g. SCO Unix can indicate a run level for init to be applied upon reboot (1, s or S for single user),
this apparently is absent from OS X...

Leo

sao 10-29-2003 12:34 PM

Mac OS X 10.3: Starting Up in Console Mode

http://docs.info.apple.com/article.html?artnum=125085

Press the Command and S keys together as the computer starts up.


You can also enter Console mode from within the Terminal application. If you are in Terminal, type:

sudo shutdown now

To switch back to the Mac OS X interface, type reboot and press the Return key. The computer restarts and you see the login dialog or the Mac desktop, depending on your login preferences.

yellow 10-29-2003 12:39 PM

Quote:

Originally posted by sao
You can also enter Console mode from within the Terminal application. If you are in Terminal, type:
sudo shutdown now
That kbase article is incorrect for 10.3. Try it yourself. That works for Jaguar, but not for Panther. It seems that 'shudown' in the CLI assumes 'shutdown -o'. The man page doesn't mention -o.

sao 10-29-2003 12:45 PM

yellow,

You are absolutely right...and in my Hall of Fame now... :)

Should have read the whole thread... :D

yellow 10-29-2003 12:50 PM

Sao, any idea what the o flag is all about? I only assume that it's the default flag because of:

yellow% sudo shutdown now
Password:
shutdown: -o requires -h or -r
usage: shutdown [-] [-h | -p | -r | -k] [-o [-n]] time [warning-message ...]

But there's no mention in the man pages.. unless there's more then one shutdown?

mervTormel 10-29-2003 01:13 PM

http://www.svbug.com/cgi-bin/man.cgi?comd=8+shutdown

the manpage is out of rev with the dingus, and the dingus may be hobbled on OSX, re: runlevels

sao 10-29-2003 01:56 PM

shots in the dark...

I wonder if the reason that 'shutdown now' doesn't work in Panther has anything to do with journaling being on.

I remember there was a bug also with 'sudo shutdown -h time' in 10.2.8


All times are GMT -5. The time now is 04:51 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.