Re: permissions issue with GCC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Well, since I can't see exactly what you've done and what your current
permissions are set to, all I can do is give you is some general info:

In order to execute a program you need these permissions:

  * read and execute on the file

  * read and execute on EVERY directory from the directory where the
    file exists, to the root directory.

So if your executable is "/usr/lib/foo/bar/runme" then you'll
need at least r-x access to "/.", "/usr", "/usr/lib", "/usr/lib/foo",
"/usr/lib/foo/bar", AND "/usr/lib/foo/bar/runme".

(note in some special situations you can get away without read access to
the directories, if you know the entire pathname and don't need to look
up anything; however it's quite possible that the GCC frontend will try
to read directories so I wouldn't go there unless you have very special
requirements).

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <psmith@xxxxxxx>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux