> to disable "!" (escape to shell) while they are viewing the file in "more/pg".
> Note, these users generally work from a captive menu and are restricted
> from command entry.
In that case I'd expect the ! to take them back to the menu
(reentrantly). If your copy of "more" doesn't honour the setting of
the SHELL environment variable then it is IMHO broken. To make "!" do
nothing simply set SHELL=/bin/true.
Quote:> I have checked man pages for these commands but can't see
> any means of enforcing this restriction.
You are probably going about this the wrong way - seeking to treat
individual symptoms rather than the root cause. If you've made the
account "captive" by giving it an ordinary shell and creating a login
script then you will likely find many such holes. Consider doing it
the right way - making the shell entry in /etc/passwd point to the
menu program/script directly.
. _\\__[oo from | Phones: +44 121 471 3789 (home)
. l___\\ /~~) /~~[ / [ | PGP-fp: D7 03 2A 4B D8 3A 05 37...
# ll l\\ ~~~~ ~ ~ ~ ~ | http://wcl-l.bham.ac.uk/~bam/