Terminal commands to fix the Adobe License Failure issue

There are a few reasons that can result in the licensing app to fail in OS X. There are a few fixes, up to and including reinstalling Creative Suite. The FLEXNet app was introduced with CS2, I believe. It’s mostly a permissions issue on the FLEXNet folder. I had one instance where a user was logging in to multiple Macs and crashing FLEXNet, killing CS3.

In my experience on around ten Macs running 10.4.11 and CS3, these commands have taken care of the FLEXNet permissions issues.

Does anyone have suggestions for wrapping these up in a script? Dealing with admin permissions prompts for non-admin accounts? I can run the commands in Terminal, but I get errors (above) in Script Debugger.

Model: Dual 2.3GHz G5
AppleScript: 2.1.1/Script Debugger 4
Browser: Firefox 3.0.4
Operating System: Mac OS X (10.4)

If you are talking about how can you do this without knowing the admin username/password the answer is you can’t. If you know them prior to run though (in a lab for instance) you can put them in the script like so.

set adminName to "admin's short name"
set adminPass to "admin's password"
do shell script "chown “R root:admin /Library/Application\\ Support/FLEXnet\\ Publisher;chmod “R 755 /Library/Application\\ Support/FLEXnet\\ Publisher;chmod “R 4755 /Library/Application\\ Support/FLEXnet\\ Publisher/Service/11.03.005/FNPLicensingService" user name adminName password adminPass with administrator privileges

Also per Apple Technical Note TN2065 the use of sudo is not needed and actually can create some security holes.

I have a local admin account on all of the Macs, Active Directory user accounts. I could just export a run-only version to load on each Mac, keeping the password secure.

The problem I get persists, though:

Try this, copy paste it exactly

set adminName to "admin's short name"
set adminPass to "admin's password"
do shell script "chown -R root:admin '/Library/Application Support/FLEXnet Publisher';chmod -R 755 '/Library/Application Support/FLEXnet Publisher';chmod -R 4755 '/Library/Application Support/FLEXnet Publisher/Service/11.03.005/FNPLicensingService'" user name adminName password adminPass with administrator privileges

The problem was your “-” sign. When I posted the script the first time I was copy pasting your code, but didn’t test it. The “-” sign you were using has an ascii number of 208. Whereas the “-” that works for me has an ascii number of 45.

One final word of caution. Saving as a run-only script does not ensure security. In the case of run-only scripts all strings are NOT encrypted and can be easily read with the use of a hexeditor.

If you really want a secure solution you could run the script as a login hook or launchd job. These will run as root without ever having to expose a password.