Linux - GeneralThis forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
In short encryption is pretty much worthless since it a) needs to be decrypted before execution, b) reside somewhere unprotected upon execution and c) the root account user can read everything anyway. Protection schemes aren't true F/OSS spirit anyway IMNSHO.
I read it more like a security thing than an "I wrote it, it's mine and I ain't sharing" thing. It could be that the OP is trying to keep normal users from being able to see how the script does something. It would be more difficult for someone to find a hole in your firewall if they don't have access to your scripts, right?
As per unSpawn, what you're asking is more or less not possible.
What you could do is use sudo to ensure that users can only run it, but not see the src.
Either give the script its own 'owner' or give it to root.
Distribution: pclos2009.2, slack13, Debian Lenny (+30 others, for test only)
Posts: 2,935
Thanked: 277
I once used this: http://www.datsi.fi.upm.es/%7Efrosal/
"Shc is a generic shell script compiler. It takes a script which is specified
on the command line and produces C source code. The generated source code
is then compiled and linked to produce a stripped binary executable."
I read it more like a security thing than an "I wrote it, it's mine and I ain't sharing" thing. It could be that the OP is trying to keep normal users from being able to see how the script does something. It would be more difficult for someone to find a hole in your firewall if they don't have access to your scripts, right?
Could be, sure, but since the OP didn't post back yet all that remains is speculation.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.