command

Marti, Rob RJM002 at shsu.edu
Fri Mar 27 13:34:37 UTC 2009


-----Original Message-----
From: redhat-list-bounces at redhat.com [mailto:redhat-list-bounces at redhat.com] On Behalf Of Joy Methew
Sent: Friday, March 27, 2009 5:45 AM
To: General Red Hat Linux discussion list
Subject: Re: command

thanks george

i dont wanna do this from permission.

On Fri, Mar 27, 2009 at 4:11 PM, George Magklaras <georgios at biotek.uio.no>wrote:

> If permissions cannot solve the problem (chmod, selinux) (you do not
> specify who is others), you could briefly re-write your script in Perl and
> use perlcc (man perlcc) to produce an executable that is not so easy to
> read.
>
> --
> --
> George Magklaras BSc Hons MPhil
> RHCE:805008309135525
>
> Senior Computer Systems Engineer/UNIX-Linux Systems Administrator
> EMBnet Technical Management Board
> The Biotechnology Centre of Oslo,
> University of Oslo
> http://folk.uio.no/georgios
>
>
>
> Joy Methew wrote:
>
>> hello all,
>>
>>                i make a script on bash shell to create  100 users. now i
>> wanna make this script  as a command then i copy this script in /bin
>> directory.give execute permission.
>>
>> it`s working.
>>
>> but now any other can read this script bcoz this is in simple text format
>> not encryptd and not in binary.
>>
>> i waana hide my scripting.
>>
>> any suggestion.
>>
>> thanks.
-------------------------------------------------------------------------------
Why not use permissions?  chmod ug-rw,+x should do exactly what you want, and is millions of miles more "secure" than obfuscating with perl.

One question - if everyone is going to be able to run the command, why do you care if they can cat it?

Rob Marti









More information about the redhat-list mailing list