help regarding file ownership

hi friends,i have a doubt,if there is a file for which i have only read access then is there any way to execute it,plz reply soon

Depends on what is in the file. A ksh script? Use:
ksh < /read/only/file

i could not get ur point,can u plz eloborate

Sorry, I can't think of anything to add. :confused:

Make a copy of it to your home:
cp read_only_file $HOME

Add execute permissions:
chmod u+x read_only_file

Run file:
./read_only_file

Now if the script/executable is writing to other files that you do not have write permission to, it will fail to work correctly.

script file can be executed using <shell name> <file name>
for other cases isnt it a security violation ???