0

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?

  • 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
2

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?

  • ` Inside does it execute something else that could have a permission issue?` AHA! – gAMBOOKa Feb 21 '10 at 22:54
1

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

  • 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
0

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

  • 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
0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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