Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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 :)

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.

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.

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 encryptedTo decrypt, I type:
crypt satish
then, rm backup
I guess this is what you had asked me for.

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 encryptedTo 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)

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 encryptedTo 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]

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 encryptedWhere 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]

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 ?

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.

![]() |
![]() |
![]() |

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