Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
    
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
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?

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

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

share|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

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

share|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

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.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .