Computing.Net > Forums > Solaris > David , help me with this script

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.

David , help me with this script

Reply to Message Icon

Name: satish
Date: June 29, 2003 at 07:21:23 Pacific
OS: solaris
CPU/Ram: 750mhz/256mb
Comment:

hi ,
plz help me with a shell script(in ksh)

I have written a shell script which has it has quality check routines & batch files)file called "Quality". I have crypted this file.
I want this script only be accessed by my group members with vaild username and password.Suppose a user supplies correct password..the file should get decrypted an execute that shell script.

Any help on this is kindly appreciated :)



Sponsored Link
Ads by Google

Response Number 1
Name: David Perry
Date: June 29, 2003 at 08:16:36 Pacific
Reply:

I'm not sure why you would want to encrypt a shell script as even the commercial attempts at this were trivial to bypass. If you want only members of a certain group to be able to read or execute this script, but not modify, set the privileges to

chmod 750 Quality

The host will take care of ensuring that members are properly authenticated.

If this doesn't help, please give me details about encrypting and decrypting your shell script.


0

Response Number 2
Name: satish
Date: June 29, 2003 at 18:22:00 Pacific
Reply:

Well david,

I am afraid chmod 750 will not do any good here bcoz, all members have same username and password to logon.

I will get back to you soon with the script.The fact of the matter is there is little competation going on among people here (i.e.,team level wise). So, if this script is read by another competating team member.., chances are he would copy /modify or better things in their own scripts.

Thanks for quick response..,I will getback soon.




0

Response Number 3
Name: Satishkn
Date: June 29, 2003 at 18:59:58 Pacific
Reply:

hi David,
Here are details about encrypting and decrypting myshell script.

e.g:
My shell script name is "quality"

To encrypt, I type:

crypt satish
( then, i delete quality file using )
rm quality
Now, I get contents in is encrypted

To decrypt, I type:

crypt satish
then, rm backup

I guess this is what you had asked me for.



0

Response Number 4
Name: Satishkn
Date: June 29, 2003 at 19:02:52 Pacific
Reply:

hi David,
Here are details about encrypting and decrypting myshell script.

e.g:
My shell script name is "quality"

To encrypt, I type:

crypt satish
( then, i delete quality file using )
rm quality
Now, I get contents in is encrypted

To decrypt, I type:

crypt satish
then, rm backup

I guess this is what you had asked me for.

(reposted coz, many of the words in this window here are being eaten)



0

Response Number 5
Name: Satishkn
Date: June 29, 2003 at 19:04:31 Pacific
Reply:

hi David,
Here are details about encrypting and decrypting myshell script.

e.g:
My shell script name is "quality"

To encrypt, I type:

crypt satish[quality] [backup]
[ then, i delete quality file using ]
rm quality
Now, I get contents in is encrypted

To decrypt, I type:

crypt satish[backup] [quality]
then, rm backup

I guess this is what you had asked me for.

[reposted coz, many of the words in this window here are being eaten]



0

Related Posts

See More



Response Number 6
Name: Satishkn
Date: June 29, 2003 at 19:09:15 Pacific
Reply:

hi David,
Here are details about encrypting and decrypting myshell script.


e.g:
My shell script name is "quality"

To encrypt, I type:

crypt satish[quality] [backup]
[ then, i delete quality file using ]
rm quality
Now, I get contents in is encrypted

Where satish is the password-key used


To decrypt, I type:

crypt satish[backup] [quality]
then, rm backup

I guess this is what you had asked me for.

[reposted coz, many of the words in this window here are being eaten]


P.N: Replace square brackets by arrow shaped brackets in crypt syntax.[ bcoz its been eaten by this window]


[ At last I hope this one is posted correctly and completely]


0

Response Number 7
Name: David Perry
Date: July 1, 2003 at 04:19:25 Pacific
Reply:

I missing the point of making a script that would decrypt another script in order to hide it from someone who has the same rw privs you do. Could they not also read the encrypt / decrypt script ?


0

Response Number 8
Name: satish
Date: July 1, 2003 at 19:43:36 Pacific
Reply:

YEP! DAVID YOU ARE RIGHT. I GUESS NOW THE BEST OPTION AVAILABLE IS TO TELL THE SYSTEM ADMINISTRATOR AND HOPE HE WILL HANDLE THE JOB EFFECTIVELY WITH rwx permissions.

Thanks for your kind attention.
I will get back to you it i need your help in any job related scripts.


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

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


Go to Solaris Forum Home


Sponsored links

Ads by Google


Results for: David , help me with this script

Shellscripting help needed www.computing.net/answers/solaris/shellscripting-help-needed/4031.html

NIC to 10 HDX - Work with cable modem www.computing.net/answers/solaris/nic-to-10-hdx-work-with-cable-modem/1922.html

error with as (assembler) www.computing.net/answers/solaris/error-with-as-assembler/1556.html