An executable file has permissions -rwxrwxr-x and owner is root. When a non-root user tries to execute the file, I get a permission denied error. What am I not understanding?

link|improve this question

71% accept rate
What executable, where is it located? – John T Feb 21 '10 at 22:40
It's flex sdk's mxmlc compiler script and located under /opt/flex/... – gAMBOOKa Feb 21 '10 at 22:50
feedback

4 Answers

up vote 2 down vote accepted

Where is the location of the file? Is the file in a readable directory?

EDIT: As well what does the file do? Inside does it execute something else that could have a permission issue?

link|improve this answer
` Inside does it execute something else that could have a permission issue?` AHA! – gAMBOOKa Feb 21 '10 at 22:54
feedback

Check the filesystem isn't mounted with the noexec option, which will override the permissions on the file. Can root execute the file?

link|improve this answer
It's in the home directory and root can execute it just fine. EDIT: It's located under /opt/ my bad – gAMBOOKa Feb 21 '10 at 22:47
feedback

In order to execute you must also be able to read (except for root, who can do anything on plain unix systems)

link|improve this answer
But everyone has read permissions here, right? – gAMBOOKa Feb 21 '10 at 22:50
yeah right i overlooked that - i really thought only root had 'r' – fen Feb 21 '10 at 22:56
feedback

If it is a script (i.e. uses #! on the first line to tell the OS how to run it) check the permissions of the interpreter named there.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.