12.13. Security

 <  Day Day Up  >  

12.13.1 Privileged Scripts

A script is privileged if the Korn shell is invoked with the “p option. When the privileged option is used and the real UID and/or the real GID are not the same as the effective UID or effective GID, the .profile will not be executed and a system file called etc/suid_profile will be executed instead of the ENV file.

12.13.2 Restricted Shells

When the Korn shell is invoked with the “r option, the shell is restricted. When the shell is restricted, the cd command cannot be used and the SHELL , ENV , and PATH variables cannot be modified or unset; commands cannot be executed if the first character is a backslash; and the redirection operators (>, <, , >>) are illegal. This option cannot be unset or set with the set command. The command rksh will invoke a restricted shell.

 <  Day Day Up  >  


UNIX Shells by Example
UNIX Shells by Example (4th Edition)
ISBN: 013147572X
EAN: 2147483647
Year: 2004
Pages: 454
Authors: Ellie Quigley

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net