Computing.Net > Forums > Unix > Shell script encryption

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Shell script encryption

Reply to Message Icon

Name: whatisthis
Date: July 11, 2006 at 10:49:05 Pacific
OS: Solaris 8
CPU/Ram: 4GB
Comment:

Hi,
How do I do partial encryption of shell script?
For example,
#!/usr/bin/csh
set options = (a b c)

#//I want the following lines to be encrypted or scrambled so that the users cannot modify them //

foreach n (${options})
echo \ $n >> run.txt
end

Please help. Thanks



Sponsored Link
Ads by Google

Response Number 1
Name: nails
Date: July 12, 2006 at 08:11:39 Pacific
Reply:

I'm not certain what you are asking. If some other unix user has permission to change your script, why wouldn't they still do it even if part of it is encrypted? I'd tighten up the script permissions.

Maybe this link will be helpful:

http://www.tek-tips.com/viewthread.cfm?qid=834759


0

Response Number 2
Name: whatisthis
Date: July 12, 2006 at 11:20:31 Pacific
Reply:

That's because user has to provide the a,b,c options in the script. They don't have to know the rest.


0

Response Number 3
Name: nails
Date: July 12, 2006 at 13:05:24 Pacific
Reply:

Sorry, but I'm still not understanding your problem. You can grant a non-root user the ability of executing a script and take away the read ability.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Shell script encryption

shell script for string encryption www.computing.net/answers/unix/shell-script-for-string-encryption/7406.html

Encrypting a shell script. www.computing.net/answers/unix/encrypting-a-shell-script/4758.html

Shell Scripting www.computing.net/answers/unix/shell-scripting/8475.html