The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Special Forums > Hardware > Filesystems, Disks and Memory
.
google unix.com



Filesystems, Disks and Memory Discuss NAS, SAN, RAID, Robotic Libraries, backup devices, RAM, DRAM, SCSI, IDE, EIDE topics here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Retain file permissions when saving .sh file from internet [OS X] baza210 Shell Programming and Scripting 4 12-11-2008 10:18 AM
To give the "unzip" permissions & "create" file permissions Mike1234 HP-UX 3 03-02-2008 05:34 PM
help with file permissions bbbngowc Security 3 12-21-2007 01:34 PM
file permissions on www vic20 UNIX for Dummies Questions & Answers 4 12-09-2003 04:11 PM
File and Dir permissions thomas.jones UNIX for Dummies Questions & Answers 11 04-19-2002 10:35 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-06-2009
bishnu.bhatta bishnu.bhatta is offline
Registered User
  
 

Join Date: Mar 2007
Location: Pune,India
Posts: 12
Regarding File permissions

Hi,

I have a shellscript.I want to protect the source code.

So I gave 711 permission on the file(owner=rwx,group=x,others=x)

but still others are not able to execute it.

Please help me in protecting the source code.I don't want others to use any cat or vi command on the script but others should be able to execute it.

Thanks in anticipation.
  #2 (permalink)  
Old 08-06-2009
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,794
Running your script requires r + x access.

Try compiling the script into an exectuable with shc

How to compile shc:
shc: shell compiler?

download shc from here:
shc 3.8.6 free download. shc project is a generic shell script compiler. It takes a script which is specified on the command line and produces C source cod
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:27 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0