The UNIX Forums
"Join the Network of UNIX System Users"


 
Subject: only execute permission for others...
Markwebuk
Newbie
Rank: 1



UID 251
Digest Posts 0
Credits 0
Posts 40
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 18, 2007 10:36 AM  Profile | P.M. 
only execute permission for others...



only execute permission for others...



this might be very silly question but i dont know y is it so...

i have script

i have given the permissions in the following manner...

-rwxrwx--x 1 root system 3 jun 08 15:46 temp

i want no one to see what is present in that but should be able to execute it..

but when i try to execute it as an user i get following error..

the file access permissions do not allow the specified action.
ksh: temp: 0403-016 cannot find or open the file.


i am executing it from the directry where it is present...

no user is able to execute it even though i gave execute permission for others...


Top
forumrating
Newbie
Rank: 1



UID 149
Digest Posts 0
Credits 0
Posts 113
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 18, 2007 10:37 AM  Profile | P.M. 
you have misuderstood the permissions, and how they work.

in analogy what you have done is give the user a book and asked them to produce a summary without opening it.

perderabo wrote quite a long and detailed thread in the tips and tutorials section which explains this subject rather well.
Top
-jay-
Newbie
Rank: 1



UID 26
Digest Posts 0
Credits 0
Posts 47
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 18, 2007 10:37 AM  Profile | P.M. 
quote:
originally posted by reborg
you have misuderstood the permissions, and how they work.

in analogy what you have done is give the user a book and asked them to produce a summary without opening it.

perderabo wrote quite a long and detailed thread in the tips and tutorials section which explains this subject rather well.





thats right..
i have seen the thread in tips and tutorials section by perderabo..
he explains the way the permission bit work...

but my clients reqirement is this way....
he wants users to execute the script but they should not be able to see the contents fo the script...

its bascially a compilation script.
every one is making a copy of it and manupilating its contents at there local level...and moving the generated load....

that is making problems as there are not using all the compiler options...

is there no way that with out a read permission on a file we make the user to execute it for compiling the programs...???
Top
heinlein99
Newbie
Rank: 1



UID 173
Digest Posts 0
Credits 0
Posts 31
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 18, 2007 10:37 AM  Profile | P.M. 
ksh93 comes with the shcomp utility to create a binary file from the shell script. ksh can execute this binary file just as a normal script.
Top
 

 

All times are GMT, the time now is Jul 31, 2010 03:26 AM

Powered by Discuz! 5.0.0  © 2001-2006 UNIX Forums
Processed in 0.005199 second(s), 8 queries

Clear Cookies - Contact Us - UNIX Help - Archiver - WAP