Forum Replies Created

Viewing 6 posts - 16 through 21 (of 21 total)
  • Author
    Posts
  • in reply to: Can’t login on new image #371780
    Theilgaard
    Participant

    In 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 admin

    exit 0

    I tried a lot of different approaches.

    in reply to: Can’t login on new image #371777
    Theilgaard
    Participant

    The 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.

    in reply to: Creating a Local Admin via PKG in Leopard Question #371762
    Theilgaard
    Participant

    Thank you!

    Just what I needed, but you already knew that 😉

    Søren

    in reply to: Creating a Local Admin via PKG in Leopard Question #371757
    Theilgaard
    Participant

    Just 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?

    in reply to: Creating a Local Admin via PKG in Leopard Question #371755
    Theilgaard
    Participant

    How 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?

    in reply to: Creating a Local Admin via PKG in Leopard Question #371746
    Theilgaard
    Participant

    I 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

Viewing 6 posts - 16 through 21 (of 21 total)