Computing.Net > Forums > Unix > Shell script encryption

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

Shell script encryption

Reply to Message Icon

Original Message
Name: whatisthis
Date: July 11, 2006 at 10:49:05 Pacific
Subject: Shell script encryption
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


Report Offensive Message For Removal


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

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


Report Offensive Follow Up For Removal

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

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


Report Offensive Follow Up For Removal

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

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.


Report Offensive Follow Up For Removal







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








Do you have your own blog?

Yes
No
I did before
I will soon


View Results

Poll Finishes In 2 Days.
Discuss in The Lounge
Poll History




Data Recovery Software