Re: Need help with shell script.

Farley Flud <[email protected]>
Newsgroups comp.os.linux.misc
Organization UsenetExpress - www.usenetexpress.com
Message-ID <[email protected]>
On Mon, 10 Aug 2026 23:58:49 -0000 (UTC), Lawrence D’Oliveiro wrote:

> 
> “But it’s MY FILE! I created it, it belongs to me, I have full access
> over it! What possible ‘permission’ am I being denied?”
> 
> Answer: execute access.
>

Execute permissions are only required if the file is being handled
by the kernel execve() system call.

Otherwise, any executable file can be executed without having
execute permission by simply invoking the appropriate interpreter.

For binary execs:

/lib64/ld-linux-x86-64.so.2 file

For perl scripts:

perl file.pl

Of course, strip any exec permissions before demonstrating this.






-- 
Gentoo/LFS: Is there any-fucking-thing else?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.