🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
3 messages
3 total messages Started by Terry Hardie Sat, 29 Oct 1994 02:56
Stopping ^Z and "!" in tin
#12226
Author: Terry Hardie
Date: Sat, 29 Oct 1994 02:56
9 lines
1032 bytes
Can anyone tell me how to stop users press CTRL-Z or "!" in tin? I am asking
this becaus eI have set up an account on my system whereby the user can only
run tin and not any other shell command.

Please send any responses via e-mail.

Thanks in advance.

Terry
Re: Stopping ^Z and "!" in tin
#12229
Author: Mathias Koerber
Date: Sat, 29 Oct 1994 07:43
35 lines
1992 bytes
In (<38sdk6$odq@status>) Terry Hardie (python@linux.bytes.iconz.co.nz) wrote:
| Can anyone tell me how to stop users press CTRL-Z or "!" in tin? I am asking
| this becaus eI have set up an account on my system whereby the user can only
| run tin and not any other shell command.

Sure:

in the user's .profile:

	SHELL="" export SHELL
	readonly SHELL

	exec tin

This will disable the SHELL run when '!' is pressed, and CTRL-Z
will not work, because the underlying shell is gone if you
exec the program..

cheers

| Please send any responses via e-mail.

| Thanks in advance.

| Terry

--
Mathias Koerber                                      Tel: +65 / 778 00 66 x 29
SW International Systems Pte Ltd                          Fax: +65 / 777 94 01
14 Science Park Drive #04-01 The Maxwell    e-mail: Mathias.Koerber@swi.com.sg
S'pore 0511       <A HREF=http://www.swi.com.sg/public/personal/mk.html>MK</A>
"Germans, of course, have no love life.  They can't, since whispering "I love
 you" to your sweetie sounds just the same as telling her that you wish to
 eviscerate her corpse and place the head on a spear in the front yard as a
 warning to others." -- Dan Sorenson
Re: Stopping ^Z and "!" in tin
#12236
Author: Jeffrey Hurwit
Date: Sat, 29 Oct 1994 23:07
14 lines
1394 bytes
In article <38sdk6$odq@status>, 
Terry Hardie (python@linux.bytes.iconz.co.nz) wrote:

>Can anyone tell me how to stop users press CTRL-Z or "!" in tin? I am asking
>this becaus eI have set up an account on my system whereby the user can only
>run tin and not any other shell command.

    You will have to get the sources for Tin, and build a second copy. 
    I haven't compiled Tin in a while, but I think it does include a
    flag you can define to prevent shell escapes and ^Z suspends.  If
    it does, it should be among the various options listed in the
    install file.  This is the only way I know of that you can do it.

    					Jeff
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads