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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.