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?

2
  • What executable, where is it located?
    – user1931
    Commented Feb 21, 2010 at 22:40
  • It's flex sdk's mxmlc compiler script and located under /opt/flex/...
    – gAMBOOKa
    Commented Feb 21, 2010 at 22:50

4 Answers 4

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?

1
  • ` Inside does it execute something else that could have a permission issue?` AHA!
    – gAMBOOKa
    Commented Feb 21, 2010 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?

1
  • It's in the home directory and root can execute it just fine. EDIT: It's located under /opt/ my bad
    – gAMBOOKa
    Commented Feb 21, 2010 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)

2
  • But everyone has read permissions here, right?
    – gAMBOOKa
    Commented Feb 21, 2010 at 22:50
  • yeah right i overlooked that - i really thought only root had 'r'
    – fen
    Commented Feb 21, 2010 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.

You must log in to answer this question.

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