![]() |
"appropriate privileges"
I am trying to open a file - leao2007javamacv1.1command and when I click on it I get the message "the file....could not be executed because you do not have appropriate access privileges. To view or change access privileges, select the file in the Finder and choose File > Get Info".
In Get info, at the bottom, it says I can read and write to this file so what else is there to change? I have java J2SE 5.0 running, so am up to date - presumably. Am running MAC OSX 10.5.2 on a MacBook 2Ghz Intel with 1Gb memory. Any tips?:confused: |
you are running an automated shell script, you need executable rights. What does this file do?
|
It opens an income tax program (via terminal I think..)
|
why would you need that?
You can already do that via terminal by doing this: Code:
open -a "taxprogram.app"It is some sort of java app or java script? |
You're losing me here.
I have no idea what it runs. It ends up being a table for monthly income tax and deductions (Brazilian Income tax - not US). Are you saying that I should enter those very words that you wrote in terminal, or the name of the program? sorry, I'm not so tecchie, more a photoshop buff..:D |
No, I am just weary of why you would run that, and it seems possible it could be malicious and do harm to your system. Which is why I haven't told you how to modify the permissions yet.
I will tell you, but run this at your own risk, and you must be an admin to accomplish this Code:
sudo chmod 755 /path/to/command |
|
It's an official program from the govt - I live in Brazil, actually and it's income tax time now (due Wed nite).
I tried what you said but it asked for a password and I couldn't type anything...presumably that would be my administrator / login pw, right? |
yeah it will ask for the admin password to change permission to do so. You must be the admin to run that command.
|
It IS a java based program - they say you need at least java version 1.4.2
|
I AM the admin - the only user!
|
|
Quote:
|
aaaaaaaaaaaaaaaaaargh!
Last login: Tue Apr 29 19:12:13 on ttys000 doug-stewarts-macbook:~ dougbraz$ sudo chmod 755 /path/to/command/Users/dougbraz/Desktop/LEAO2007Javamacv1.1.command chmod: /path/to/command/Users/dougbraz/Desktop/LEAO2007Javamacv1.1.command: No such file or directory doug-stewarts-macbook:~ dougbraz$ |
oh man I am sorry
I mean drop the /path/to/command and put in the actual path which would be sudo chmod 755 /Users/dougbraz/Desktop/LEAO2007Javamacv1.1.command |
dougbraz, you don't want to explicitly type
/path/to/command That's a placeholder for the path to the command. You want to type exactly sudo chmod 755 /Users/dougbraz/Desktop/LEAO2007Javamacv1.1.command Trevor Edit: D'oh! Beaten to the punch... |
Don't think I'm not appreciating your great help, but I got nothing, nada , zip
Last login: Tue Apr 29 19:27:24 on ttys000 doug-stewarts-macbook:~ dougbraz$ sudo chmod 755 /Users/dougbraz/Downloads/LEAO2007Javamacv1-1.1.command doug-stewarts-macbook:~ dougbraz$ AFter I moved the file back to the downloads folder.. Man this is frustrating - I DO appreciate your time.. |
trevor -
Last login: Tue Apr 29 19:27:50 on ttys000 doug-stewarts-macbook:~ dougbraz$ sudo chmod 755 /Users/dougbraz/Desktop/LEAO2007Javamacv1.1.command doug-stewarts-macbook:~ dougbraz$ nope...also |
Quote:
So, this .command file should now be considered executable in Unix (not that I'm convinced that .command files require that, since they are executed in the GUI). You can verify this with ls -l /Users/dougbraz/Desktop/LEAO2007Javamacv1.1.command You should see permissions for this file of -rwxr-xr-x Those three x's above mean that it is executable (on the command line) by the user owner, the group owner, and others. Trevor |
WOOHOO!!!!!
GReat - thanks a million guys! It now worked.... BRilliant |
so adding the executable fixed it?
|
Make executable on ANY machine
I have written a script that I would like to be able to e-mail to people and have them run WITHOUT them having to run a chmod on the file first. Is this possible???
Thanks, -A |
Quote:
|
| All times are GMT -5. The time now is 10:27 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.