Script protection against changes


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Script protection against changes
# 1  
Old 11-17-2012
Script protection against changes

Hi everyone,

I´m trying to protect the scripts I have made from changes.

At my office I´m the one who research improvements on daily tasks, and I´ve done many scripts, that I share with my partners.I´m tired because they take my scripts and make their owns with new features that don´t share or keep secret... so I need to prevent them to open my scripts and modify it.

The use os user permissions is not possible because I have to share my scripts also with operators, and they need permission to Read and eXecute, so anyone can open my script to see the code.

Is there any way to encode it?

I´m just a beginner on scripting and I don´t know anything about compilation. Please give me a hand!!!

Before asking here I´ve been searching on internet... but I haven´t find anything useful.

Thanks!
# 2  
Old 11-17-2012
If you write your scripts in Kshell, you can use shcomp which will convert the script into a binary representation that Kshell can execute. You then put the executable file out in a public directory, and keep the source file as read only in your private development area.

If shcomp isn't installed on your system you can get it as a part of AST from AT&T Labs Research: AT&T Labs Research - Software Tools

Maybe something like this will work for your situation
# 3  
Old 11-20-2012
Thank you,

it seems thath we don´t have shcomp installed, and I can´t install anything because I´m just a user of an SunOS 5.9 on a big company.

¿any other ideas?

Thanks!!!
# 4  
Old 11-20-2012
You can download it and build it in your home directory -- no need to 'install' it. Of course, company policy might prohibit that too which is too bad.
# 5  
Old 11-20-2012
If you have sudo you could write a stub script that runs the actual script with sudo as user or group that has access to read the script.

This will involve the sysadmins allowing the stub script to run the actual script as the user/group without a password prompt.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Homework & Coursework Questions

Protection and special characters

I am learning from the class how to protect the special characters and the script that I wrote here does not work when I am trying to pick up a single quote. It would complaint about parentheses problem. Please, someone could enlighten me. Thanks in advance, Scopiop Input file Hi, * ?... (2 Replies)
Discussion started by: scopiop
2 Replies

2. IP Networking

Protection against arp spoofing

Hi, I'm trying to find a way to protect my network against arp spoofing. What it is: An attacker sends fake arp packets in the network, identifying himself as the router. All network traffic is then redirected to this attacker. How to protect myself: In my opinion, the best possible... (2 Replies)
Discussion started by: chrisperry
2 Replies

3. Shell Programming and Scripting

Password protection in unix

How to create a file in UNIX which is password protected ? Thanks and Regards, Neeraj (5 Replies)
Discussion started by: neeraj617
5 Replies

4. Linux

file security/protection

Hi All I am working on a site to help newbie to learn linux for free. demo.freelinuxconsole.info there is only one file index.php its been able to rename or deleted. Kindly let me know what permissions should i give to secure this file from editing or deleting by others. (8 Replies)
Discussion started by: smithjack
8 Replies

5. Shell Programming and Scripting

override protection 644 (yes/no)?

Hi pls help me out to short out this problem rm PAB113_011.out rm: PAB113_011.out: override protection 644 (yes/no)? n If i give y it remove the file. But i added the rm command as a part of ksh file and i tried to remove the file. Its not removing and the the file prompting as... (9 Replies)
Discussion started by: sri_aue
9 Replies

6. Cybersecurity

spam and protection?

Hello, Long time ago we used to suffer from relay and users using your own mailservers to spam but thanks god for auth-before-pop. But now i'm facing small problem with someone which us he is spaning using whatever mailserver with your@email.address.com and when these emails go to unknown... (10 Replies)
Discussion started by: Bashar
10 Replies

7. Filesystems, Disks and Memory

protection schemes

Consider a system that supports 5,000 users. Suppose you want 4,990 of these users to be able to access one file How would you specify this protection scheme in UNIX (4 Replies)
Discussion started by: mattyboy
4 Replies

8. UNIX for Dummies Questions & Answers

Override protection.....

I am having this problem......when I run this script: print -n "Enter file name to be deleted: " read answer if then rm $name else echo "No such file with the name: $name exists" fi I was trying to test my script for errors, and basically when the user had files with the rights: 400,... (1 Reply)
Discussion started by: Makaveli.2003
1 Replies
Login or Register to Ask a Question