Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: iTunes PKG leaving DMG mounted #371919
    jlevitsk
    Participant

    You very well may have. I’m simply terrible at reading release notes. 🙂 probably would save me some time. Hopefully the post will save other non-readers like me. 🙂

    jlevitsk
    Participant

    Specifically it should look like this after the fix… I looked and it seems to make the link right now…

    # ImageKit
    my $ImageKitLink = $GAS_Framework . “ImageKit.framework”;
    my $ImageKitTarget = “/System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/ImageKit.framework”;
    repairLink($ImageKitLink, $ImageKitTarget);

    # QuartzComposer
    my $QuartzComposerLink = $GAS_Framework . “QuartzComposer.framework”;
    my $QuartzComposerTarget = “/System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/QuartzComposer.framework”;
    repairLink($QuartzComposerLink, $QuartzComposerTarget);

    jlevitsk
    Participant

    Take a look in the postflight_actions folder at the one script in there. I think I see the problem. See they repair the symlink but for the Target they include $TargetDisk which I don’t think is right. Right? If you do the SymLink with the $ImageKitTarget and $QuartzComposerTarget set without a $TargetDisk I think then the link destination would not include the disk name so it would properly resolve when you run this patch. I haven’t tried it yet but I think that’s the problem.

    # ImageKit
    my $ImageKitLink = $GAS_Framework . “ImageKit.framework”;
    my $ImageKitTarget = $TargetDisk . “/System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/ImageKit.framework”;
    repairLink($ImageKitLink, $ImageKitTarget);

    # QuartzComposer
    my $QuartzComposerLink = $GAS_Framework . “QuartzComposer.framework”;
    my $QuartzComposerTarget = $TargetDisk . “/System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/QuartzComposer.framework”;
    repairLink($QuartzComposerLink, $QuartzComposerTarget);

    jlevitsk
    Participant

    I hit this too. Someone reported to Apple? This seems like a flaw in the PKG…

    in reply to: Creating a Local Admin via PKG in Leopard Question #371751
    jlevitsk
    Participant

    Wouldn’t this work to set a password from a hash?

    #!/bin/bash

    #Make the account
    exampleadmin/usr/bin/dscl . -create Users/exampleadmin
    /usr/bin/dscl . -create Users/exampleadmin home /Users/exampleadmin
    /usr/bin/dscl . -create Users/exampleadmin shell /bin/bash
    /usr/bin/dscl . -create Users/exampleadmin uid 501
    /usr/bin/dscl . -create Users/exampleadmin gid 501
    /usr/bin/dscl . -create Users/exampleadmin realname “exampleadmin”
    /usr/bin/dscl . -create Groups/exampleadmin
    /usr/bin/dscl . -create Groups/exampleadmin gid 501
    # doesn’t matter what we make it since we kill it anyways…
    /usr/bin/dscl . -passwd Users/exampleadmin “FunkyChicken”
    /usr/bin/dscl . -append Groups/admin GroupMembership exampleadmin

    # find the GeneratedUID of the user and remove the password hash file
    # from /private/var/db/shadow/hash/
    # sudo ls -a /private/var/db/shadow/hash
    # sudo ls -l /private/var/db/shadow/hash/

    guid=”$(/usr/bin/dscl . -read “/Users/exampleadmin” GeneratedUID | /usr/bin/awk ‘{print $NF;}’)”
    /bin/rm -f /private/var/db/shadow/hash/$guid
    echo ‘000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000205465095A12BDF8A6B23F016C94A37F12H9D4CD5162C0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000’ > /private/var/db/shadow/hash/$guid
    /usr/bin/chown root:wheel /private/var/db/shadow/hash/$guid
    /bin/chmod 600 /private/var/db/shadow/hash/$guid

    /usr/bin/srm -r /Library/StartupItems/instauser
    exit 0

Viewing 5 posts - 1 through 5 (of 5 total)