Skip to main content
Question

Unable to Create Mobile Account

  • March 20, 2015
  • 27 replies
  • 160 views

Show first post

27 replies

Forum|alt.badge.img+8
  • Contributor
  • April 4, 2018

Worked for me too on a machine that had issues after system update being applied in 12.12.6. The user reported that they couldn't login. I could with other users and noticed there was no mobile account showing in dscl. Intesting I got an error when attempting to create a local account via createmobilehome.

sh-3.2# createmobilehome -v -n user_name 
The mobile account could not be created: 4102 (Could not create the record because one already exists with the same name.)

Interestingly, while the account didn't show in dscl, it did show when listing /var/db/dslocal/nodes/Default/Users. I deleted the above sql files, restarted and was immediately able to create the mobile home in terminal. Thanks!


Hayden_Webb
Forum|alt.badge.img+6
  • Contributor
  • January 18, 2019

I went into the Users folder (/Computer/Macintosh HD/Users/), deleted the user folder that was having the error and it fixed the issue for me.