Mac OSX Standalone App: Fixup Broken App Permissions

Hi All – been a while. I just downloaded an update for the awesome Hermes App and ran into the same problem I ran into before – it’s a Mac OSX standalone app (directory) you can execute as a local user. So how do you take such a beast and put it into your /Applications folder?

  1. Here’s the original listing downloaded from the app site:
    CloudrasLLCsMBP:Downloads l.abruce$ ls -la Hermes.app/
    total 0
    drwx------@  3 l.abruce  staff   102 Sep 19 21:55 .
    drwx------+ 49 l.abruce  staff  1666 Sep 20 21:55 ..
    drwx------@  8 l.abruce  staff   272 Jun 24 08:13 Contents

    As can be seen, it’s setup to run just for my local account.

  2. Copy the files to Applications:
    sudo cp -R ~/Downloads/Hermes.app /Applications/
  3. Now set the permissions – note the process for each type:
    
    find . -type d -print -exec chmod 755 {} \;
    find . -type f -perm 600 -print -exec chmod 644 {} \;
    find . -type f -perm 700 -print -exec chmod 755 {} \;
    find . -type l -print -perm 700 -exec chmod -h 777 {} \;
  4. The final result:
    CloudrasLLCsMBP:Downloads l.abruce$ sudo find /Applications/Hermes.app -exec ls -lad {} \;
    drwxr-xr-x@ 3 root  admin  102 Sep 20 22:16 /Applications/Hermes.app
    drwxr-xr-x@ 8 root  admin  272 Sep 20 22:16 /Applications/Hermes.app/Contents
    drwxr-xr-x@ 3 root  admin  102 Sep 20 22:16 /Applications/Hermes.app/Contents/_CodeSignature
    -rw-r--r--@ 1 root  admin  10265 Sep 20 22:16 /Applications/Hermes.app/Contents/_CodeSignature/CodeResources
    drwxr-xr-x@ 4 root  admin  136 Sep 20 22:16 /Applications/Hermes.app/Contents/Frameworks
    drwxr-xr-x@ 5 root  admin  170 Sep 20 22:16 /Applications/Hermes.app/Contents/Frameworks/Growl.framework
    lrwxr-xr-x@ 1 root  admin  22 Sep 20 22:16 /Applications/Hermes.app/Contents/Frameworks/Growl.framework/Growl -> Versions/Current/Growl
    [...output cut...]
    -rw-r--r--@ 1 root  admin  27238 Sep 20 22:16 /Applications/Hermes.app/Contents/Resources/volume_down.icns
    -rw-r--r--@ 1 root  admin  4809 Sep 20 22:16 /Applications/Hermes.app/Contents/Resources/volume_up.png
    -rw-r--r--@ 1 root  admin  1560 Sep 20 22:16 /Applications/Hermes.app/Contents/Resources/zzs.png
  5. This corrects the problem – and the app will now appear in the Launchpad for all users.

    So nothing earth-shaking, just some Linux commands.

    Team-oriented systems mentor with deep knowledge of numerous software methodologies, technologies, languages, and operating systems. Excited about turning emerging technology into working production-ready systems. Focused on moving software teams to a higher level of world-class application development. Specialties:Software analysis and development...Product management through the entire lifecycle...Discrete product integration specialist!

Posted in Mac, SysAdmin, Teknocratica Tagged with:

Leave a Reply

Your email address will not be published. Required fields are marked *

*

Human Verification: In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.