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

Re: (OT) exec nonreadable shell scripts



On Wed, Jan 10, 2001 at 06:24:33PM +0000, Rick wrote:
> sorry for off-topic, but I've been banging my head trying to set up shell
> scripts that can be executed but not read by a user.  

Not doable.

The shell needs to read them in order to execute them.

(Well, you could do something REALLY evil like suid wrappers switching
them to a user id that could read the script.... but that is ugly.)

-- 
CueCat decoder .signature by Larry Wall:
#!/usr/bin/perl -n
printf "Serial: %s Type: %s Code: %s\n", map { tr/a-zA-Z0-9+-/ -_/; $_ = unpack
'u', chr(32 + length()*3/4) . $_; s/\0+$//; $_ ^= "C" x length; } /\.([^.]+)/g; 



Reply to: