Secure (regular) Scripts_
Reinhard Foessmeier
foessmei at lan.informatik.tu-muenchen.dbp.de
Fri Dec 22 19:42:34 AEST 1989
In article <1078 at st_nik.UUCP> nik at st_nik.UUCP (Nik Simpson x333) writes:
-> ... If
->you change SHELL either using putenv if you are working in executable
->or
-> SHELL="something harmless";export SHELL
->
-> In a script this disbles shell escapes from most well behaved programs
->in my experience.
->--
Mi ne scias, chu vi nomus "vi" I don't know if you call "vi" a well
bonkonduta programo. Sed "vi" behaved program. Yet "vi" allows you
permesas al vi shanghi la valoron to change the value of "SHELL" by
de "SHELL", per la ordono typing the command
":set shell=/bin/sh". Do gardu vin! ":set shell=/bin/sh". So beware!
Reinhard F"o"smeier
-----
Reinhard F\"ossmeier, Technische Univ. M\"unchen | UNOX is a trademark of
foessmeier at infovax.informatik.tu-muenchen.dbp.de | "Union Deutsche
[ { relay.cs.net | unido.uucp } ] | Lebensmittelwerke GmbH"
More information about the Comp.unix.wizards
mailing list