>   Operating ksh in restricted mode may fulfill your needs. Here from
> the man page for ksh (this is the public domain Korn Shell in
> OpenBSD):
>
> -r      Restricted shell.  A shell is ``restricted'' if this option
> is used or if either the basename the shell was invoked with or the
> SHELL parameter match the pattern ``*r*sh'' (e.g. rsh, rksh, rpdksh).
>  The following restrictions come into effect after the shell
> processes any profile and ENV files:
>
 
bash has the same switch. see man bash

Reply via email to