I have a perl script sitting on my server.I want user john to be able to execute,but no read/write to it.So john must be able to execute the script,but if he tries to read the file,he must get access denied.Root must have all permissions on it.How will i do this?I thought doing chmod 771,with owner root should fix it,but not So the file looks like.
-rwxrwx--x 1 root root 340 May 23 10:53 test.pl
If user john tries to execute it he gets Can't open perl script "./test.pl": Permission denied.
Does the last execute bit not set execution roghts for any user?How will i get this working?
Thanks for the help.