tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: DEC UNIX ftp..
@ 1995-07-11 14:35 Cenon B.C. Marana Jr.
  0 siblings, 0 replies; only message in thread
From: Cenon B.C. Marana Jr. @ 1995-07-11 14:35 UTC (permalink / raw)
  To: tru64-unix-managers


Thanks to those who responded namely:
Matt Thomas <thomas@lkg.dec.com>
Ross Alexander <rwa@cs.athabascau.ca>
"Ian K. Piumarta" <Ian.Piumarta@inria.fr>

> Hello All!
> 
> I just would like to inquire if there are ways and means on how 
> to tinker the DEC UNIX ftp wherein the ! option would be disabled to 
> restrict its use.

The easiest thing to do is to set the SHELL variable to something harmless
before invoking FTP.  For example, from a sh or ksh you can do

        prompt$ SHELL=/bin/true
        prompt$ ftp
        ftp> !ls
        ftp>

You can place the name of any program in the SHELL variable and the actual
command used in FTP will be passed as an argument.  For example, "!ls" in FTP
runs "$SHELL -c ls", so we can easily get the following effect:

        prompt$ SHELL=/bin/echo
        prompt$ ftp
        ftp> !ls -l
        -c ls -l
        ftp>

(where /bin/echo has echoed the arguments to the ! command).


(If you use csh or similar you will have to use

        prompt% setenv SHELL /bin/echo
        prompt% ftp
        ...
instead.)
                      


Bonn
:)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1995-07-11 14:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-07-11 14:35 SUMMARY: DEC UNIX ftp Cenon B.C. Marana Jr.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox