How to Access a Secret Login Console in Mac OS
cdn.osxdaily.com/wp-content/uploads/2017/10/login-console-boot-mac-300×113.jpg 300w, cdn.osxdaily.com/wp-content/uploads/2017/10/login-console-boot-mac-768×289.jpg 768w, cdn.osxdaily.com/wp-content/uploads/2017/10/login-console-boot-mac-900×339.jpg 900w, cdn.osxdaily.com/wp-content/uploads/2017/10/login-console-boot-mac.jpg 902w” sizes=”(max-width: 610px) 100vw, 610px” style=”max-width: 100%; margin: 0.5em auto; display: block; height: auto;” class=””>
Some versions of Mac OS support the ability to login any user account directly to the command line right from the traditional login screen, thereby bypassing the familiar Mac user interface. Instead you’re essentially signing a user directly into the Terminal (a bit like using the ssh client to connect to an SSH server), without having to load the desktop, Finder, WindowServer, or any other frills of the GUI. This can be handy for advanced users who need quick access to the complete command line from a particular user account, but want to skip the complete login and loading of the Mac OS graphical environment. Keep in mind not all versions of system software support this feature however, so it’ll take a bit of discovery to determine which do and which do not.
Before diving in, realize this is really only for advanced Mac users thoroughly comfortable with the command line environment. It’s also important to point out the hidden login Console / Terminal is completely different from Single User Mode or the Recovery Mode Terminal, which are supported on all Macs and Mac OS versions. For one, with the Console Login trick you can login directly as any user on the Mac with user level privileges, whereas Single User Mode always uses a root login with many system services and processes disabled, and is aimed for more administrative purposes. Two common uses of Single User Mode are repairing a disk with fsck and changing an admin password, or other troubleshooting tasks. Single User Mode and Recovery Terminal are really best for troubleshooting and is not an appropriate environment for more generic command line interactions, but the direct Console login can be used just like you would the Terminal app.
Does my MacOS version support Login Terminal / Console?
Console Login is not supported by all versions of Mac OS or Mac OS X. The Console login feature appears to be supported in Mac OS X 10.9.x (Mavericks), 10.8.x (Mountain lion), 10.7.x (Lion), 10.6.x (Snow Leopard), Leopard, Tiger, etc but may or may not be supported in MacoS Mojave (10.14) macOS 10.13.x (High Sierra), macOS 10.12.6 (Sierra), OS X 10.11.6 (El Capitan), or 10.10 Yosemite. Feel free to report in the comments below if you have success with this or not, and your version of system software.
You can attempt to enable the login console in Mac OS / Mac OS X with the following defaults command, and then reboot the Mac to then follow the directions further below to see if you can access the login screen terminal:
sudo defaults write /Library/Preferences/com.apple.loginwindow.plist "DisableConsoleAccess" NO
If you attempt to load the Console from login screen on an unsupported Mac, you will either just see a blank black screen which appears to be inescapable, requiring you to forcibly reboot the Mac, or you will briefly see a flash of white text on the black screen, and then a blank black screen that also requires a reboot to escape. If you know of a way around this, share with us in the comments.
How to Access a Terminal at Login Screen in Mac OS
Note you must have automatic login turned off on the Mac, otherwise you will not have access to the login screen on boot from which to access the console. Remember, not all versions of Mac OS support this feature.
- Reboot the Mac as usual
- At the login screen, choose “Other”
- For username, type the following and then hit return – no password is necessary yet
- Hit the Return key
- If successful, you will see a login prompt at the command line, as if you just booted up a unix environment without a windowing environment, now enter a user name and password to login directly to the command line as that user
- NOTE: If unsuccessful, the screen will turn black and you will have to force reboot the Mac by holding down the Power key to exit
Assuming you successfully logged into the login Console, you will have full access to everything you would in a normal Terminal environment, but without any of the Mac OS graphical interface. You can exit out of this environment by rebooting from the command line with the shutdown or reboot commands.
Note you can access the “Other” field whenhiding the login user name list or with the list of users at the logins screen enabled, but it will not work with Automatic Login enabled.
This is a little known trick, and that it’s supported in some versions of Mac OS but not in others further muddies the waters of when and where it will work, and if support has been pulled from modern versions (it appears to be missing from the latest macOS releases). MacWorld referenced the secret login Terminal some time ago and uncovered discussion of the trick from way back in 2002, suggesting that the console login may work in all earlier versions of Mac OS X but not in the most recent versions. To find out definitively what versions support the capability, user exploration in a wide variety of more recent Mac OS releases would be necessary. I was able to successfully access Terminal via the login console on a Mac running Mavericks, but not on a Mac running High Sierra or Sierra, for example. It’s entirely possible this feature is gone for good in modern macOS releases, in which case this will only apply to older Mac OS X system software.
Were you able to access the Login Console on your Mac or with your version of Mac OS? Share your experience in the comments below, and if you know any other tips or tricks relating to the little known login terminal screen, share those too.