user has folder but no account

Discussion in 'iMac' started by webberz, Jun 4, 2008.

  1. webberz macrumors newbie

    Joined:
    Jun 4, 2008
    #1
    After a recent upgrade to Leopard..an unsmooth upgrade i believe...we are unable to log into previous accounts...if i look in the user folder on the hardrive i see the users..but when looking on the accounts in system preference they aren't listed

    Is there anyway to recreate the accounts using the folders in the /User directory?

    Or copy the whole user to a new account?
     
  2. ert3 macrumors 6502a

    ert3

    Joined:
    Dec 10, 2007
    #2
    If memory serves you can simply re add them after copying their home folders to some where else (that is if you have root access).
     
  3. webberz thread starter macrumors newbie

    Joined:
    Jun 4, 2008
    #3
    thx ert3...but then how would i restore all their stuff?
     
  4. yellow Moderator emeritus

    yellow

    Joined:
    Oct 21, 2003
    Location:
    Portland, OR
    #4
    Well, you see this happen in places where OD/AD controls authentication and in moves from Tiger to Leopard because Tiger uses NetInfo and Leopard does not.


    Do the users exist if you use this:

    dscl . -list /Users

    (please note, /Users used with dscl has nothing to do with the file structure)

    Also, log in as root, rename all their home folders to username.BAK and then once they are able to login and the home folder is recreated, log them out, log in as root, rename the home folder back to what their user name is, and correct the permissions on them. Then when they login, everything looks like it always did.
     
  5. webberz thread starter macrumors newbie

    Joined:
    Jun 4, 2008
    #5
    Do the users exist if you use this:

    dscl . -list /Users

    ---No they don't appear on the list
     
  6. yellow Moderator emeritus

    yellow

    Joined:
    Oct 21, 2003
    Location:
    Portland, OR
    #6
    And how do they authenticate?

    Locally? AD? OD?
     
  7. webberz thread starter macrumors newbie

    Joined:
    Jun 4, 2008
    #7
    And how do they authenticate?

    Locally? AD? OD?

    just locally...
     
  8. yellow Moderator emeritus

    yellow

    Joined:
    Oct 21, 2003
    Location:
    Portland, OR
    #8
    OK, just login as root and rename user folders to username.BAK.
    Create their accounts locally.
    Remove the newly created user folder and rename username.bak back to what the short username should be.
    Correct permissions.
    Done.
     
  9. webberz thread starter macrumors newbie

    Joined:
    Jun 4, 2008
    #9
    Thank you Yellow...worked beautifuly..all back to normal =)
     

Share This Page