Posted on 04-01-2016 12:20 PM
What commands do I use for this. I tried this and it seems to hang on the NetInstall.
Has this changed in 10.11 to different commands?
. /etc/rc.common
dscl . create /Users/administrator
dscl . create /Users/administrator RealName "Administrator"
dscl . passwd /Users/administrator password
dscl . create /Users/administrator UniqueID 501
dscl . create /Users/administrator PrimaryGroupID 80
dscl . create /Users/administrator UserShell /bin/bash
dscl . create /Users/administrator NFSHomeDirectory /Users/administrator
dscl / -append /Groups/admin GroupMembership administrator
cp -R /System/Library/User Template/English.lproj /Users/administrator
chown -R administrator:staff /Users/administrator
Posted on 04-01-2016 12:38 PM
We use something along these lines to create a hidden admin account:
/usr/sbin/sysadminctl -addUser $adminAccount -fullName $adminAccount -UID 498 -password $adminPassword -home "/private/var/${adminAccount}" -admin
Posted on 04-01-2016 12:45 PM
side query: does anyone know what 'jamf createAccount' does under the hood? It's definitely worked for me on 10.11.
Posted on 04-01-2016 12:48 PM
Take a look at this. https://github.com/MagerValp/CreateUserPkg
The app allows you to set everything the way you want it and then just installs as a .pkg
Posted on 04-01-2016 12:50 PM
@nwiseman This doesn't work in 10.11
Posted on 04-01-2016 12:53 PM
@kericson Interesting...I'm using it for our 10.11.x images without issue.
Posted on 04-01-2016 12:57 PM
@nwiseman When you try to add this .pkg file this is the error I get.
Posted on 04-01-2016 01:06 PM
@kericson Where are you trying to add it? I may be misunderstanding.
What I'm doing is creating the pkg and placing it in CasperAdmin. From there I set it to install on the boot drive after imaging, then add it to all of my image configurations. So far I haven't had any issues with this, but I may not be actually doing what you want done.
Posted on 04-01-2016 01:08 PM
I have to use Apple System Image Utility :( so this is where I'm trying to put this.
Posted on 04-01-2016 01:10 PM
Ahh...Ok...Sorry for dragging you down the rabbit hole then.
Posted on 04-01-2016 01:27 PM
@dan.snelson How would I make this not hidden?
Posted on 04-01-2016 01:36 PM
@kericson Try using a UID greater than 501 (making sure to not duplicate any existing UIDs).
Posted on 04-01-2016 01:44 PM
Kyle,
I tried adding stuff to the SIU when making a netinstall image, in my beta testing of X.10.11 and somethings were working and some were not.. also I wanted to a erase and auto install and that didn't work reliably either so I gave up.
I got X.10.11.3 to erase auto install however It's not working in X.10.11.4 ...
long way of saying that I think that parts SIU are not 100% reliable.
C
Posted on 04-03-2016 01:44 AM
@kericson why do you have to use SIU? & what's the end goal?
If you've paid for Casper, I'm wondering why using SIU over Casper Imaging.
Posted on 04-03-2016 01:45 PM
@kericson Kyle one of the best resources I've found for creating a hidden Administrator account (under 500) is, "CreateUserPkg." nwiseman is spot on! https://github.com/MagerValp/CreateUserPkg
Posted on 04-04-2016 05:18 AM
@bentoms I only paid for composer we use AirWatch instead. CreateUserPkg. doesn't work in SIU neither does any other .sh scripts for some reason