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?– user1931Commented Feb 21, 2010 at 22:40
-
It's flex sdk's mxmlc compiler script and located under /opt/flex/...– gAMBOOKaCommented Feb 21, 2010 at 22:50
4 Answers
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!– gAMBOOKaCommented Feb 21, 2010 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?
-
It's in the home directory and root can execute it just fine. EDIT: It's located under
/opt/
my bad– gAMBOOKaCommented Feb 21, 2010 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)
-
-
yeah right i overlooked that - i really thought only root had 'r'– fenCommented Feb 21, 2010 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.