The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How do i change to super user then revert back to ordinary user ,using shell script? wrapster Shell Programming and Scripting 3 06-04-2008 07:11 AM
read user input from within a wile loop that is being fed from below broli UNIX for Dummies Questions & Answers 2 01-09-2008 03:19 PM
how to make root user read all frankkahle UNIX for Advanced & Expert Users 4 08-30-2007 05:04 PM
Can't read floppy and cdrom in single user mode ajnabi SUN Solaris 2 03-21-2007 09:15 AM
read-waiting for user response giannicello Shell Programming and Scripting 4 05-12-2003 12:43 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-27-2006
happyv happyv is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 209
how other user cannot read my script?

Hi All,

If I don't want other user read my script, what can i do?
  #2 (permalink)  
Old 09-27-2006
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
  
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
Do you own it (I assume you do)?

chmod 700 /path/to/myscript

Of course, root can still read it.

Cheers
ZB
  #3 (permalink)  
Old 09-27-2006
happyv happyv is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 209
thank you...
also, can i hide the directory or file?
  #4 (permalink)  
Old 09-27-2006
Yogesh Sawant's Avatar
Yogesh Sawant Yogesh Sawant is offline Forum Staff  
Part Time Moderator and Full Time Dad
  
 

Join Date: Sep 2006
Location: Rossem, Tazenda
Posts: 1,086
Use chmod command to remove the read permission (or all permissions, whatever appropriate) of files and directories for particular users/groups.
There is no seperate hide functionality in *NIX

Consider encrypting the files if you want them to be meaningless for other users.
  #5 (permalink)  
Old 09-27-2006
happyv happyv is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 209
Thank you all!
  #6 (permalink)  
Old 09-28-2006
tbdo88 tbdo88 is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 11
Quote:
Originally Posted by happyv
Hi All,

If I don't want other user read my script, what can i do?

user vi -x to create the file then you have to provide an encription key (password) to read it..
  #7 (permalink)  
Old 09-28-2006
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,909
Quote:
Originally Posted by tbdo88
user vi -x to create the file then you have to provide an encription key (password) to read it..
which version of vi is this? mine doesn't have it.
Sponsored Links
Closed Thread

Bookmarks

Tags
linux

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 03:14 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
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