On Oct 9, 2007, at 8:35 AM, Logan Capaldo wrote: > On 10/9/07, Shai Rosenfeld <shaiguitar / gmail.com> wrote: >>> I have written an app in Ruby for my company and I was the only one >>> that had acess to read/execute it. I've hired someone to help me >>> with >>> daily work and that includes having him execute a set of those Ruby >>> scripts. >>> >>> Is it possible to allow him to only execute the code and not give >>> read >>> permission? All boxes are running Linux. >> >> i may have overlooked something but what is wrong with using chmod? >> >> http://www.computerhope.com/unix/uchmod.htm >> >> -rwx--x--- 1 mksm youandfriendgroup 7264 2006-12-07 13:42 >> rubyscript.rb >> >> in the example above only you have all Read-Write-eXecute >> permissions, >> and you're friend only has eXecute permissions. >> -- >> Posted via http://www.ruby-forum.com/. >> > Ruby scripts are not ELF/Mach-O/PE/"whatever your system uses" > binaries. Your friend needs to be able to read the script to execute > it. >> > Well, the permissions settings need to include the UID of the process that tries to use the script. It is possible to make it a system level UID where users can run it indirectly, but not open and read the file. But any admin can change that, and a good admin would probably be very suspicious of it.