Closed websterba closed 10 years ago
Please run the following command in the Terminal for each of the two admin packages and paste the output here:
pkgutil --expand YOUR_ADMIN_PACKAGE.pkg temp_pkg && ditto -x temp_pkg/Payload temp_pkg/unpacked && /usr/libexec/PlistBuddy -c "delete :jpegphoto" temp_pkg/unpacked/private/var/db/dslocal/nodes/Default/users/gadmin.plist && /usr/libexec/PlistBuddy -c "print" temp_pkg/unpacked/private/var/db/dslocal/nodes/Default/users/gadmin.plist && rm -rf temp_pkg
Is your first admin account not created with CreateUserPkg? In that case, please paste the following command for each of the two admin accounts, when logged into a deployed machine:
dscl . -read /Users/pelle | awk -v nlines=2 '/^JPEGPhoto/ {for (i=0; i<1; i++) {getline}; next} 1' | grep -v dsAttrTypeNative
Correct, my first account is created when I make the base image, then the second one is deployed at DeployStudio image time. I'll paste output once I get to a machine that has the issue.
I'm using CreateUserPkg to create a second Admin account on computers that I have deployed to my schools. I added the pkg to be installed by DeployStudio at image time but it seems that the second admin account tries to use the home directory of the first admin account. So that when I log in as the first admin the computer thinks that I'm logged in as the second. I've tried troubleshooting this to the best of my ability. Any help is appreciated.