Script Source
How can we hide the script source from end-users or from other users in the same group while they need to run it as well.
Is there anyway to compile it without using any 3rd party tool.
Linux
How can we hide the script source from end-users or from other users in the same group while they need to run it as well.
Is there anyway to compile it without using any 3rd party tool.
by nikki96
Make the file permissions rwx--x--x (711). Allows the owner to read, write, execute and group and others execute only.
See "chmod" (man chmod) for how to change file permissions.
by myr3070
by alveden
The question is ambiguous.
What kind of script are you using, csh, sh, bash, perl, ruby .... etc?
1. Most distribution of unices comes with a C compiler, you can rewrite your script to C coding that perform command calls to your OS, similar to your script.
2. If your unices comes with a perl distribution, and if your script is in perl. Perl is can be complile using a c compiler. I would suggest using gcc ... although it can be considered a 3rd party tool.
3. Lastly, and the easiest way is probably get a setuid/setgid wrapper. Something like SUDO, where you can protect the source by changing the file permission to 700, and yet, using sudo, allow the user to excute as the owner.
by myr3070
by myr3070
This discussion is closed to new replies.
Sort by Trending