Restricted Shell

This is a version of the shell that allows restricted access to Unix. Running under rsh is equivalent to ksh, except that the following is not allowed:

  • changing directories

  • setting the value of ENV, PATH, or SHELL variables

  • specifying path or command names containing /

  • redirecting output of a command with >, >|, <>, or >>

These restrictions apply only after the .profile and environment files have been processed.

Privileged Mode

Privileged mode allows execution of the environment and .profile files to be controlled. When enabled, the ∼/.profile and environment files are not executed. Instead, /etc/suid_profile is read and executed.

The /etc/suid_profile file can be configured by the system administrator to control execution of ...

Get Korn Shell: Unix and Linux Programming Manual, Third Edition, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.