Forum Replies Created
-
AuthorPosts
-
Theilgaard
ParticipantIn the latest version the postflight script does nothing, as everything is installed as files. It looks like this (the admin user was not exactly named as here, but everything else is the same:
#!/bin/bash
#Set password for admin user
#$1/Contents/Resources/shadowHash.sh XXXXXXXX > $3/var/db/shadow/hash/9BB9BC05-34B5-4A0E-8DEC-3855D3183954#Copy User Template to admin
#/usr/bin/ditto /System/Library/User\ Template/English.lproj/ /var/admin#Create admin home
#/bin/mkdir $3/var/admin
#/usr/sbin/chown -R 499:staff $3/var/admin#Put local-admin account in admin group
#/usr/bin/dscl . -append Groups/admin GroupMembership adminexit 0
I tried a lot of different approaches.
Theilgaard
ParticipantThe installer installs the admin.plist file as well as the user.plist file. I one scenario I created the hash file using the postflight script, but in the latest version I installed this as a file.
The population of the admin users home folder was done using the StartupScript following instauser, but customized with my location.
I have verified the permissions on the various files install (when I was logged in, in console mode), and it looked correctly.
Theilgaard
ParticipantThank you!
Just what I needed, but you already knew that 😉
Søren
Theilgaard
ParticipantJust saw Josh’ reply.
I did look at the PackageMaker project (which btw. opens as “unititled” in my 10.5 PackageMaker app).
But I need to generate the hash code for the password, so how do I do that?
Theilgaard
ParticipantHow do I generate the hash-code?
I have created a user on my own system, and given this user the “password” password, as in the instauser shadowhash file, but the code I get is different from the one in that file.
But could I use the dscl command with the password to set this hash-code?
Then the instauser Installer should just install the user-file, and as a postflight script run the two dscl-lines with the password and the admin-group. Would that work?
Theilgaard
ParticipantI am now working with the 1.3b release, but the instauser_10.5 script is still just installing the admin.plist file instead of a postflight script with the dscl command, or am I missing something?
How can I change the password for this user?
Thanks,
Søren -
AuthorPosts
Recent Comments