edrcperm.no_shell
Package: WA2L/edrc 1.5.57
Section: Library Commands (3)
Updated: 28 May 2007
Index
Return to Main Contents
NAME
edrcperm.no_shell - pseudo shell to deny access to a shell from vi, more, etc.
SYNOPSIS
edrc/lib/edrc/edrcperm.no_shell
AVAILABILITY
WA2L/edrc
DESCRIPTION
The
edrcperm.no_shell
command is used within
edrc
as a pseudo shell to deny access to the real shell via
the built in commands of
vi,
view
and
more
when the
shell
permission is listed in
DENY_LIST
in the
edrc
config file
etc/edrc.cfg.
Beside the stdout message, a log entry is created.
The following dialog appears, if a user tries to invoke the shell
within
vi
:
edrc-WARNING execution of functionality 'shell' not permitted.
Press RETURN to continue
OPTIONS
-
ENVIRONMENT
-
EXIT STATUS
- 0
-
always.
EXAMPLES
- 1) How to implement shell access denial
-
Code cut-out to deny shell access within commands that provide
shell access as
vi,
view
and
more
:
:
save_shell=$SHELL
export SHELL=`approot`/lib/edrc/edrcperm.no_shell
vi $file
export SHELL=$save_shell
:
SEE ALSO
edrcintro(1),
edrc(1m)
NOTES
-
BUGS
-
AUTHOR
edrcperm.no_shell was developed by Christian Walther. Send suggestions
and bug reports to wa2l@users.sourceforge.net .
COPYRIGHT
Copyright © 2008
Christian Walther
This is free software; see
edrc/doc/COPYING
for copying conditions. There is ABSOLUTELY NO WARRANTY; not
even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This document was created by man2html
using the manual pages.
Time: 00:14:02 GMT, March 08, 2025