On Linux (or any system on which you can install pdksh, the freeware
version of ksh), you can make the shell restricted by (from the
manual):
A shell is restricted if the -r option is used or if
either the basename of the name the shell is invoked with
or the SHELL parameter match the pattern *r*sh (e.g., rsh,
rksh, rpdksh, etc.). The following restrictions come into
effect after the shell processes any profile and $ENV
files:
- the cd command is disabled
- the SHELL, ENV and PATH parameters can't be changed
- command names can't be specified with absolute or
relative paths
- the -p option of the command built-in can't be used
- redirections that create files can't be used (i.e.,
>, >|, >>, <>)
Regards,
-- Raju
>>>>> "David" == David Kulp <[EMAIL PROTECTED]> writes:
>>
a> Restricting users to their home directory.
>> Sorry, not possible with plain UNIX shells. Perhaps you could
>> make a menu system and have them use that instead?
David> Not with plain unix shells, but restricted shells are
David> possible. On solaris, for example, see rsh(1m) the
David> restricted shell. Users cannot change directories, modify
David> PATH, run programs containing '/', or redirect output.
David> -d