I know it sounds strange, but is there a good tool that compiles a shell (.sh) script into a executable format? I want to protect the script in such a way it will not be modified by someone.
Thanks
|
You can prevent MODIFICATION by setting the .sh file(s) to have READ/EXECUTE access to everybody. (i.e. chmod 555 filename.sh) Even then, the owner and root (and anybody with WRITE access to the directory) will always be able to make modifications to the .sh file. |
|||||
|
You can try Once this flag is set to the script, only root will be able to edit it (after running More info can be found here: http://computernetworkingnotes.com/managing-file-system-security/chattr.html |
|||
|