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?
- 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.
- Copy the files to
Applications
:sudo cp -R ~/Downloads/Hermes.app /Applications/
- 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 {} \;
- 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
This corrects the problem – and the app will now appear in the Launchpad for all users.
So nothing earth-shaking, just some Linux commands.
Leave a Reply