Re: chmod 111

From: Nick Warne
Date: Fri Mar 17 2006 - 13:08:24 EST


On Friday 17 March 2006 18:07, Felipe Alfaro Solana wrote:
> > I shouldn't be able to execute 'ls' as I can't read it, shouldn't it?
>
> Nop... you can execute binaries even if the read permission is not
> granted. Note that I said "binaries". Shell script files need read and
> execute permission, since they must be read by a shell interpreter in
> order to get executed.

Hi Felipe,

First, apologies as this isn't kernel issue (but related, I suppose).

Yes, I see now after much messing about. Why then are most binaries chmod
755? Who would need (why) to read a [system] binary?

Nick
--
"Person who say it cannot be done should not interrupt person doing it."
-Chinese Proverb
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/