[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: (OT) exec nonreadable shell scripts



On Thu, Jan 11, 2001 at 01:47:14AM +0100, Carel Fellinger wrote:
| On Mon, Jan 10, 2000 at 04:04:14AM -0500, D-Man wrote:
| > On Wed, Jan 10, 2001 at 11:27:38AM -0800, Xucaen wrote:
| > | would writing scripts in a compiled language like
| > | C be a solution? 
| > | 
| > 
| > If any binary files can be exec as suid, then I would recommend
| > python.  It will have more of the feel of a script with its high level
| > view of things.
| > 
| > Python programs can be byte-compiled to .pyo files.  It may be an
| > option to have the .pyo file suid while hiding the .py source itself.
| 
| .pyo files aren't executable:(, you'll have to feed them to python,
| so the suid bits are meaningless.
| 

I recall seeing somewhere that with the new interpreter, .pyo files
can be executed (by the interpreter, but by calling the file not the
interpreter).  Maybe not.   I wish I could remember where I saw
that.

-D



Reply to: