Home Forums Software InstaDMG Create home directories

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #378822
    Ebonfyre
    Participant

    I am attempting to create a 10.5.8 image with InstaDMG that has 4 users. I need those users to have their home directories created before I can apply some of my packages, as these packages target specific locations within specific users’ home directories. This prevents me from doing it on first run using launchd.

    The createuser.pkg is not creating these directories for me so I have attempted to create a pkg of my own which includes this line:

    “${3}”/usr/sbin/createhomedir -c > /dev/null

    The code is hacked together from other scripts I have found online so I’m really not sure if it is fully appropriate, though it does work if typed in Terminal on the target machine. It is not working during the image creation process though.

    Any thoughts on how best to achieve this goal, if it is even possible, would be greatly appreciated.

    #378823
    Rusty Myers
    Participant

    I would try to copy the home folder manually:

    % sudo ditto /System/Library/User\ Template/English.lproj /Users/newuser
    % sudo chown -R newuser:staff /Users/newuser

    Obviously, add the $3, username (or variable), and test.

    Not sure if it will work! Good luck.

    #378829
    Ebonfyre
    Participant

    So, there’s no arcane syntax that will get createhomedir to populate those directories during image creation?

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Comments are closed