Results 1 to 12 of 12
  1. #1
    Removing Keychain login message

    Member Since
    Jan 22, 2010
    Posts
    12
    Removing Keychain login message
    I work in a mac lab at a university. We recently upgraded to snow leopard.

    The computers in the lab have a few accounts. One is for CSRs, one is for Teachers, and one is for students. The students login using their individual school ID number and password. Since upgrading to snow leopard when students login they get a message saying:

    "The system was unable to unlock your login keychain"
    (With three buttons: "Continue login", "Create New Keychain", "Update Keychain Password".)

    According to apple they should just hit Create New Keychain and they won't get that message again. This has not proven to be the case. No mater what I try, all the students continue to get the message every time they login. Its not a huge issue, but a lot of them get confused and have to come ask for help.

    I would like to know how to remove this message. As all the computers are public the Keychain feature is worthless to us, so if we need to remove the entire application that would be fine...but I can't seem to figure/find out how to do that.

    Thank you!

  2. #2
    Removing Keychain login message

    Member Since
    Sep 09, 2009
    Location
    Down Under :D
    Posts
    5,484
    Specs:
    Back to my old 2.2GHz C2D MB after selling my MBP and wondering what my next Mac will be :)
    I would not recommend deleting the entire application, so first of lets try some troubleshooting.

    Try this

    and this

  3. #3
    Removing Keychain login message

    Member Since
    Jan 22, 2010
    Posts
    12
    I have tried them both, with no success

    The first one had me deleting keychains in the keychain access utility. I thought it might actually work...but alas there was no effect. There is a keychain called "Login" I thought deleting that one would work for sure, but after deleting it and seeing no effect, I went back into the keychain access program and saw that it had magically returned I'm not sure it is the problem though.

    The second one had me repairing keychains with the keychain access first aid utility. There were errors, and I did repair them, but after the repairs the message still pops up when people login.

  4. #4
    Removing Keychain login message

    Member Since
    Sep 09, 2009
    Location
    Down Under :D
    Posts
    5,484
    Specs:
    Back to my old 2.2GHz C2D MB after selling my MBP and wondering what my next Mac will be :)
    Have you tried removing ~/Library/Keychains/login.keychain?
    To see if it works, just drag it to the desktop or trash without deleting it.

  5. #5
    Removing Keychain login message
    clayneal's Avatar
    Member Since
    Mar 27, 2009
    Location
    Lincoln Nebraska
    Posts
    2,146
    Specs:
    late 08 macbook 2.0 4gig 320hdd10.7.3 32 gig iPhone 4s
    could this be in some way related to the imaging issue ? Just guessing

    Clay
    MY ADVICE COMES WITH A DOUBLE YOUR MONEY BACK GUARANTEE!

  6. #6
    Removing Keychain login message

    Member Since
    Jan 22, 2010
    Posts
    12
    Quote Originally Posted by 6string View Post
    Have you tried removing ~/Library/Keychains/login.keychain?
    To see if it works, just drag it to the desktop or trash without deleting it.
    This doesn't seem to do anything. A new login.keychain file is created and the message still comes up.

    I find it odd that there isn't a way to disable keychain. For home/personal use its great, but not in a public setting.

  7. #7
    Removing Keychain login message

    Member Since
    Jan 22, 2010
    Posts
    12
    Quote Originally Posted by clayneal View Post
    could this be in some way related to the imaging issue ? Just guessing

    Clay
    I don't believe so. Were working with a new clean image now. Also, the message thats coming up isn't a bug its supposed to come up according to apple.

    Apple says:

    "After entering your username and password at the login window in Mac OS X v10.6 Snow Leopard, you may see this alert:

    "The system was unable to unlock your login keychain"
    (With three buttons: "Continue login", "Create New Keychain", "Update Keychain Password".)

    This may happen if you changed your login keychain password or user password (so they are now different passwords), while started from the Mac OS X v10.6 Install DVD."
    While that maybe true we haven't changed our passwords, but we're getting the message anyway.

  8. #8
    Removing Keychain login message

    Member Since
    Jan 22, 2010
    Posts
    12
    Solved
    We created a script to run at login which has resolved our issue.

    Thanks for your help!

  9. #9
    Removing Keychain login message

    Member Since
    Apr 08, 2010
    Posts
    1
    I have the same issue here...

    I am not sure if this is caused by combination of new v10.6 image with older server which is not on v10.6 yet. Machines have v10.5 are all working ok. The issue on appeared for LDAP users (network user)

    Do you mine telling us what login script you put to remove the message?

  10. #10
    Removing Keychain login message

    Member Since
    Jan 22, 2010
    Posts
    12
    I had some messages asking about the script that we use so I figured I would post it here.

    The script does more than you may want it to. We use the script to pull a template of the home directory whenever a user logs on. This is an effort to keep our machines somewhat clean.

    #!/bin/tcsh -f

    ############################ login.sh ############
    # Jordan Betteridge
    # Created 8 January 2010
    # BYU English Language Center
    ################################################## ##################


    ### Description ###
    #
    # The purpose of this script is to move the home directory
    # of the user that was just logged in to a temporary location,
    # then copy the user template to the Users directory to provide a
    # fresh, consistent interface for the next user.
    # This script assumes that you want to manage users that all have
    # the same home directory specified in NetInfo or LDAP.
    #
    # If a user that just logged out realizes that they need
    # something that was saved in the home directory, they can get to
    # it by selecting "Go to Folder..." from the Finder's "Go" menu,
    # then typing "/tmp". This script will only replace a home
    # directory if the same user logs in (e.g. the default "student"
    # user). If you login as the local admin, for example,
    # the "student" user directory will still be in /Users.
    #
    # /tmp is cleared out on restarts. You could also create a cron task
    # to remove these backups on a regular basis


    ### Properties ###
    # For both elcuser and elcteacher accounts
    set defGrp = staff
    set tmpDir = /Library/Management/savedHomeDirs
    set localAdmin = asstcsr

    # For the elcuser account
    set defHomeUser = /Users/elcuser
    set defTemplateUser = /Library/Management/elcusertemp

    # For the elcteacher account
    set defHomeTeacher = /Users/elcteacher
    set defTemplateTeacher = /Library/Management/elcteachertemp


    ### Debug/testing sanity check ###
    if ( $#argv < 1 ) then
    echo "No user specified!"
    exit 1
    endif


    # If this is the elcteacher account...
    if ( $1 == "elcteacher" ) then
    # Create a timestamp for the temporary home directory storage
    set time = `date ''+%m-%d-%y_%H.%M.%S''`

    # Move the home directory
    mkdir -m 755 "${tmpDir}/prevuser.$time"
    mv $defHomeTeacher "${tmpDir}/prevuser.$time"

    # Copy a new default home directory from the user template
    /usr/bin/ditto -rsrcFork $defTemplateTeacher $defHomeTeacher

    # Change the ownership of the new home directory to the user logging in
    /usr/sbin/chown -R ${1}:${defGrp} $defHomeTeacher
    endif

    ### Script actions ###
    # If this any type of elcuser account...
    if ( $1 != "asstcsr" && $1 != "elcteacher" && $1 != "elctest" && $1 != "iLife") then
    # Create a timestamp for the temporary home directory storage
    set time = `date ''+%m-%d-%y_%H.%M.%S''`

    # Move the home directory
    mkdir -m 755 "${tmpDir}/prevuser.$time"
    mv $defHomeUser "${tmpDir}/prevuser.$time"

    # Copy a new default home directory from the user template
    /usr/bin/ditto -rsrcFork $defTemplateUser $defHomeUser

    # Change the ownership of the new home directory to the user logging in
    /usr/sbin/chown -R ${1}:${defGrp} $defHomeUser
    endif


    ### Always exit with 0 status
    exit 0
    The key is that in the template that the script pulls on login we have deleted the login.keychain file. Using this principle you could modify the script to just replace that one keychain folder instead of the whole home directory.

    It may not be exactly what you need, but hopefully you've been inspired :)
    Attached Files Attached Files

  11. #11
    Removing Keychain login message
    jsnodgrass18's Avatar
    Member Since
    Jun 02, 2010
    Posts
    3
    Ok all of you are looking at this and making it way too complicated.
    this is all you have to do:
    1. click the maginifying glass in the top right hand corner of screen
    2. type keychain access
    3. click the application keychain access
    4. next to the apple in the top left hand corner of screen click the word keychain access
    5. then click reset my keychain or reset my default keychain
    6. then type in your login password
    7. then restart the computer
    8. resolved

  12. #12
    Removing Keychain login message

    Member Since
    May 28, 2010
    Posts
    1
    Thanks for posting solutions, hobblyjig and jsnodgrass! In my case I had created a new default user account. After customizing it I needed to delete the login keychain, both files and references. When I did that and restarted I was able to successfully replace the original default folder and log in under various accounts without getting the nag screen.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. login keychain
    By AMACL in forum OS X - Operating System
    Replies: 0
    Last Post: 11-17-2014, 05:28 AM
  2. Login keychain password
    By cedc in forum OS X - Operating System
    Replies: 1
    Last Post: 10-20-2011, 06:31 PM
  3. Login keychain
    By Wardy in forum OS X - Operating System
    Replies: 1
    Last Post: 06-17-2010, 06:22 AM
  4. Removing Keychain entries from Time Machine disk
    By lbutzel in forum OS X - Operating System
    Replies: 0
    Last Post: 08-27-2009, 02:37 AM
  5. keychain login problem
    By Dangedcoyote in forum OS X - Operating System
    Replies: 2
    Last Post: 06-09-2008, 06:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •