From mboxrd@z Thu Jan 1 00:00:00 1970 From: corey@lod.com (Corey Lindsly) Date: Thu, 14 Jul 2016 15:47:23 -0700 (PDT) Subject: [TUHS] Shell control through external commands In-Reply-To: Message-ID: <20160714224724.1ADC140B9@lod.com> > > At one time they were shell scripts e.g. "exit 0" for "true". > > -- > Dave Horsfall DTM (VK2KFU) "Those who don't understand security will suffer." > Indeed. Here's what they look like in Solaris 8 .. /usr/bin/true is just comments. lod# cat /usr/bin/true #!/usr/bin/sh # Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T # All Rights Reserved # THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T # The copyright notice above does not evidence any # actual or intended publication of such source code. #ident "@(#)true.sh 1.6 93/01/11 SMI" /* SVr4.0 1.4 */ lod# cat /usr/bin/false #!/usr/bin/sh # Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T # All Rights Reserved # THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T # The copyright notice above does not evidence any # actual or intended publication of such source code. #ident "@(#)false.sh 1.6 93/01/11 SMI" /* SVr4.0 1.3 */ exit 255 lod# uname -a SunOS lod 5.8 Generic_108528-05 sun4u sparc SUNW,UltraAX-i2 lod# --corey