Terminal Won't Boot : admin has set your shell to an illegal value

So I went to go use terminal for something simple, and I got this error message, "You are not authorized to run this application. The administrator has set your shell to an illegal value."
Now of course I decided to search the internet with my Google skills to find the answer. And I found out some information about going to my System Preferences > Accounts > Unlock to make changes, & control click admin account to get advanced options, and check what my Login shell was set to, and it is set to "/bin/bash".
But I really don't know where to go from there. I've also tried using Disk Utility to repair my disk permissions several times, and it's made a lot of repairs, although I do notice when it does repairs there's one thing it won't repair.
"Warning: SUID file "System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAg ent" has been modified and will not be repaired."
Which makes me a little concerned! And it looks like it repaired a "private/etc/ssh-config" which also concerns me, but I have no idea what I'm doing at all in this area.
I could really use some help solving this issue! Thanks! How do I fix this?

I found another thread related to this post, but I'm not making full sense of what the answer is to the question, or in other words how to apply what he did.
http://discussions.apple.com/thread.jspa?threadID=2170189
Maybe if someone else takes a look at the post they could make sense of what I'm reading and translate into layman terms what the answer is, or what I should do to fix my problem.
Here's the answer I found in the linked post:
I could not start Terminal and was getting the following error:
"The Administrator has set your shell to an illegal value."
I enabled the root user from the Directory Utility (now hidden in core services but accessible from the User Accounts preference Pane). I logged in a root and looked at my /etc/shells file.
My /etc/shells file was empty
There was a /etc/shells~orig that had the expected shells listed. I copied the contents of /etc/shells~orig into /etc/shells and...
Terminal now runs just fine.
Not sure how this got changed but i'm glad it works again and I hope this post can help someone who runs into a similar problem with their terminal.app

Similar Messages

  • Trying to open Terminal I get;You are not authorised to run this application. The administrator has set your shell to an illegal value.

    Hi There Y'all,
    I have recently downloaded MacKeeper. It ran OK for a bit, but has recently stopped allowing Internet security updates and switching on of the internet protection options.
    Asked for help at MacKeeper. Their initial advice did not work, so a very nice technician was going to remotely attempt to fix the issue.
    He however needed/still needs access to Terminal, a to me unbeknown Utility feature of my MacBook pro with Mac OS X 10.6.8.
    While attempting to open Terminal the following came up
    You are not authorised to run this application.
    The administrator has set your shell to an illegal value.
    Did do a diskverify permission and repair and restart.
    Did check my admin settings in advanced options and have the /bin/bash.
    Any advice anyone.
    Thanks.
    in site out

    After finally localing private/etc/shells through Go>Go to folder and replacing the empty shells with the shells~orig I have permission again to open Terminal. Thanks. Another step.
    (Why though can't I access  /private/etc/...  through Finder's search?)
    Should work but the file or folder needs to exists to access it.  If you typed in /private/etc/shells and the file wasn't there there's no place to access.  Certainly /private/etc was there so that would have worked.
    So what will happen by inputting the lines
    ls -Fvl /bin/bash
    ls -Fvl /etc/shells
    more /etc/shells
    into Terminal?
    Basically to find out what you already seemed to find out.  The first command was to display owner, group, and permissions of  /bin/bash and to tell me whether it still existed.
    Similarly for /etc/shells.
    And the last command would have just displayed what was in /etc/shells.
    By the way /private/etc and /etc are the same folder.

  • When I try to launch terminal, i get an error "You are not authorized to run this applicationThe administrator has set your shell to an illegal value."

    When I try to launch terminal, i get an error "You are not authorized to run this applicationThe administrator has set your shell to an illegal value."

    If you'd asked a question in your original post it might have solicited more pertinent responses. As it is, you were stating a fact. No one knew whether you considered that fact a problem, or what you were hoping to gain by doing so.
    The simple addition of 'can anyone help me fix this so I can run Terminal' would have counted for a lot.
    As it is, your solution is likely to require the Terminal, so you're going to need to fix that one way or another. The simplest would be to create a new admin account (System Preferences -> Users & Groups) then log in using that account.
    Then try and launch the terminal. If that works the problem is specific to your original account and can likely be fixed via some command-line tweaking. I'd start with:
    dscl . read /Users/<username>
    (where <username> is the short name of the account having a problem). This will show the records in the directory data for your account, one of which will be UserShell. Chances are that value is invalid, or missing, and can be corrected via:
    sudo dscl . -change /Users/<username> UserShell <currentValue> /bin/bash
    (where <currentValue) is the current setting for UserShell) which will change the user's shell to /bin/bash (the default).
    Of course, you might already know this and already tried, but since you didn't say so in your original post it's worth checking.

  • The administrator has set your shell to an illegal value

    This morning when I tried to open up the terminal, I got the following error:
    You are not authorized to run this application.
    The administrator has set your shell to an illegal value
    I am the administrator of this machine, and I'm not sure how this happened. Anyone have any ideas how I can get my terminal back to normal?

    Since you are unable to use "Terminal.app" at the moment, try launching "System Preferences" > "Accounts", authenticating to "unlock" the settings and control-click your account to select "Advanced Options". The "Login Shell" entry should list your current shell, and allow you to select from a list of acceptable shells.
    If everything looks ok there, check your "/private/etc/shells" file to make sure your shell is listed.

  • Issue w/Terminal (The administrator has set your shell to an illegal value)

    Hiya,
    I have an interesting error on my Intel Macbook (running leopard). I was trying to remotely access a CVS repository and in the process of doing so I changed my default shell from sh (or bash) to tcsh (I think I was in super-user mode when I did this).
    Anyway, when I try to go su now, I am asked for my password, and when I correctly input it, I get the following error:
    su: tcsh: No such file or directory
    The command I used before was chsh -s tcsh.
    Well the problem kind of progressed - I now am no longer able to open Terminal.app on my user account (only on my root account - if/when I login to OSX as root).
    Any ides?

    ok, so that kind of worked. I'm now able to use terminal again, but I still can't login as a super user. I still get the same error
    I changed it back to bash from tcsh. I didn't realize I was forgetting the /bin. So I followed your instructions and changed it to tcsh, I restarted termianl and tried going su again, and I still get the directory not found error.

  • IMac won't boot, cursor has strange block of 'text'

    My iMac crashed during simple timeline editing in Final Cut Pro X. Upon reboot, it would get stuck at the grey apple logo screen. It would boot in safe mode, but the cursor has a mysterious square of 'text' following it around. All hardware tests indicate no problems.
    A friend who has worked on Macs for years suggested that it was a fried graphics card and that the whole logic board needed to be replaced. I ordered a logic board that claimed to be fully tested, replaced it myself, and reassembled the machine. To my shock and amazement the same exact problem presented itself: won't boot past the apple logo, and a square of 'text' is following the cursor around.
    I also reinstalled OSX 10.8.3 to no avail.
    Any suggestions for diagnostics or potential fixes would be greatly appreciated. I'm nearing my wits' end.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, or by a peripheral device. 
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including Wi-Fi on certain iMacs. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • MacBook osx 10.6 won't boot and has DVD stuck in drive

    I have an older MacBook running osx 10.6 and it recently became unable to boot up.  It gets stuck on a gray screen with a dark gray apple logo, a spinning icon and a progress bar which goes all the way up and disappears.
    I have tried the following from this page: Mac OS X: Gray screen appears during startup
    -safe boot verbose, it gets partway through and then black screens
    -resetting NVRAM / PRAM, it seems to just be trying to boot and persists in the problem.
    It has a DVD in the drive and I cannot eject it any way I try, there is no pinhole to force eject and the eject arrow or left mouse key don't do a thing, and as I can't boot into safe mode or any other way I don't know how to eject it, and because the DVD is in there I can't reinstall the OS.
    Any ideas?  I do have an external USB dvd reader I could try attaching to it to install the OS anew but not sure that would work...
    thanks
    Tamar

    OS X- Gray progress bar appears under Apple logo during startup
    If you need to reinstall:
    Reinstall OS X without erasing the drive
    1. Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    2. Reinstall Snow Leopard
    If the drive is OK then quit DU and return to the installer.  Proceed with reinstalling OS X.  Note that the Snow Leopard installer will not erase your drive or disturb your files.  After installing a fresh copy of OS X the installer will move your Home folder, third-party applications, support items, and network preferences into the newly installed system.
    Download and install Mac OS X 10.6.8 Update Combo v1.1.

  • IMac won't boot after factory setting restore

    I stupidly changed all the permission settings on my day old iMac HD. The folder of work I migrated was showing up as read only, so I unwittingly changed the whole HD to read and write permission.
    Since then I have been unable to boot the computer up. The screen goes straight to grey screen, the apple logo appears then the loading wheel graphic.... and it sticks at this.
    I have done the following to try and rectify:
    1. Removed all peripherals. Unplugged are replugged.
    2. Repaired disk in disk utility (no problems found)
    3. Repaired permissions in the disk utility (disk repaired sucessfully)
    4. Booted to reset NVRAM/PRAM
    5. Erased and reinstalled OS (twice)
    Nothing has worked so far.
    Can anyone advise, before I have to speak to a Genius?
    Thanks

    Like Barry, I can only think of trying an SMC reset: http://support.apple.com/kb/ht3964
    Failing that, unless someone else has some other suggestions, it's looking like a call to a Genius.
    Good luck and let us know what the fix was if the Genius manages to get it going.

  • PowerBook won't boot and has crazy pixel patterns

    Hi. I have a PowerBook G4 12" OSX 10.4 that seems to have gone seriously wrong. I can't get it to boot past the initial white screen, it just thinks about it for a few seconds then freezes. Booting from the system disc doesn't help either. The screen is also displaying a crazy pixel pattern over the normal graphics which seems to randomise every time the screen is updated. The issue came about when the device had a serious crash while playing music located on an external hard drive.
    Is there anything I can try to fix this or is it a hardware issue that is beyond repair?
    Thanks
    Ian

    HI Ian,
    When you boot from the install disc are you holding down the C key?
    Also, try Apple Hardware Test
    You may be able to boot in Safe Mode
    What is Safe Mode
    Resolve startup issues and perform disk maintenance with Disk Utility and fsck
    Make sure there's enough free space on your PBook.
    Right or control click the MacintoshHD icon. Click Get Info. In the Get Info window you will see Capacity and Available. Make sure you always have a minimum of 10% to 15% free disk space at all times.
    Carolyn

  • GS70 Stealth Pro won't boot UEFI after setting up Raid 0

    I just recently acquired a GS70 Stealth Pro, which came with only 1 128gb msata ssd. i picked up two more, put them in, for a total of 3 128gb ssd's, and have since enabled raid 0. upon doing so (and restoring an image i took with acronis) my laptop will now boot directly to BIOS when UEFI boot is on. If i change it to Legacy, the laptop boots fine, first to intel rapid storage, then to the OS. r/w speeds are around 1k and 500, and everything says that the raid volume is enabled. is there an issue with being on legacy instead of UEFI? and what exactly is the difference?

    Quote from: 3RAD1CAT0R;103729
    I just recently acquired a GS70 Stealth Pro, which came with only 1 128gb msata ssd. i picked up two more, put them in, for a total of 3 128gb ssd's, and have since enabled raid 0. upon doing so (and restoring an image i took with acronis) my laptop will now boot directly to BIOS when UEFI boot is on. If i change it to Legacy, the laptop boots fine, first to intel rapid storage, then to the OS. r/w speeds are around 1k and 500, and everything says that the raid volume is enabled. is there an issue with being on legacy instead of UEFI? and what exactly is the difference?
    It seems like your system is installed under Legacy mode which doesn't allow you to boot up under UEFI mode.
    You'll need to re-install the system under UEFI mode to do so. I'd suggest to use the MSI BurnRecovery to create the Recovery disks and recover the system under UEFI mode.
    People share that the most obvious difference between Win8 Legacy and Win8 UEFI is the boot up time, but I've never tried it on the GS70 model.

  • Late 2004 Dual 2.0 G5 + Airport Card = won't boot? then Reset your PRAM!

    I bought a remanufactured dual 2.0 G5 and the darn thing would not boot when I put the airport extreme card in - - - the "techs" at apple care were totally, absolutely clueless, it appears that they know less about apple products than I do, I just switched this year from PC to Mac. I was absolutely disappointed at the lack of knowledge and support by the apple care phone techs, it's quite amazing how cluless the techs are. Maybe you have to work your way through layers of people until you get to someone who knows something. The best support is here - on this site - the questions and answers that people post and answer. I love Apple products and will never go back.... but I think the support stinks....

    reset the pram, baby

  • Macbook won't boot. Has my hard drive failed?

    I installed Firefox because a company I was buying something from said their checkout didn't work with Safari. Then about 2 minutes after using Firefox the whole computer froze with the spinning disk. After a while I powered down by holding down the power switch.
    Now when I start up, I get stuck on the grey screen. I inserted the installation disk and tried to get to disk utility but it gets stuck.
    I also tried to install OS X 10.4.9 from the DVD, but when I get to the Select a Destination page, there is no destination volume to install the OS to.
    If my hard drive has failed is it possible to put a new one in myself?

    Have been trying to reconnect an external G-Drive to my G5 in order to access itunes, pictures and other things. Connecting by Firewire doesn't seem to enable either machine to recognise the other. Went to Disk Utility to try to remount the G-Drive. Couldn't remount so tried Verify Disk. Verify Disk said there was an error so tried Repair Disk. Repair Disk gives the following message:
    Verify and Repair disk “G-DRIVE”
    Checking HFS Plus volume.
    Checking Extents Overflow file.
    Checking Catalog file.
    Invalid sibling link
    Volume check failed.
    Error: The underlying task reported failure on exit
    1 HFS volume checked
    1 volume could not be repaired because of an error
    What's going on? Have I lost everything? The music and pictures are only on the G-Drive because the capacity of the G5 (160Gb) was too small.

  • Can not unistall or upgrade itunes? When trying to unistall it first says that system admin. has set policies to prevent this installation. Then it states that I have no admin. privleges. Running win 7 and only have one active admin. and guest is off.

    All other Apple programs the same way. Also my library is gone???  I downloaded a fresh copy and tried installing that as an adminisrator still wouldn't let me.
    Any suggestions?

    Verify from permission of user that you use it in upgrade, make sure that scom machine and user that you use it in upgrade in sysadmin group in database of operationsManager and OperationsManagerDW
    Also Verify from Prerequisites of Upgrade SCOM 2012 sp1 as below link
    http://technet.microsoft.com/en-us/library/jj656654.aspx
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"

  • The systems admin has set policies to prevent this install

    cant update to new itunes

    Let's try something relatively simple. Download and save a copy of the installer to your hard drive (don't run the install on line and don't start the install just yet):
    http://www.apple.com/itunes/download/
    Now right-click on the iTunesSetup.exe (or iTunes64Setup.exe) that you downloaded and select "Run as administrator".
    Does that go through any better for you?

  • IMac won't boot and has flashing folder with question mark on gray screen

    I just bought a new iMac. I have been trying all week (with no success) to transfer files and apps from my previous iMac. The last time I tried to transfer, I used target mode on the old computer. It looked as if it was finally working, so I left with 2+ hours remaining on the transfer. When I returned, the computer was frozen and nothing would work. So I held the power button to turn it off. When I tried to turn it back on, there was only a gray screen with a flashing folder with a question mark. I feel like I have tried everything listed in other discussions. The only thing I am not able to try is to reinstall Lion because the new computer did NOT come with an OSX disc of any type. Any suggestions?

    Go to > OS X Lion: About Lion Recovery

Maybe you are looking for