Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Execute permission without read?

Status
Not open for further replies.

dmjoen

Technical User
Jul 26, 2001
31
US
Is it possible to give "other" execute permission on a file without giving read access?

Thanks
 
For a binary executable, yes. For a shell script, no.

There are several ways to use sudo, however, to get the end result you're looking for if it's a script. The basic principle is to restrict read access to a specific user (not necessarily root, could be a dummy user created for the task), and allow "other" to run just that script as the user with read permissions.


Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

 
I was thinking the same thing as Rod. It would have to be a compiled or binary script..... but if it's compiled or binary, then read won't hurt anything because I doubt they could decode the compilation.

 
Thanks, sudo does exactly what I want.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top