From owner-freebsd-questions@FreeBSD.ORG Thu May 22 02:27:01 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 645C91065675 for ; Thu, 22 May 2008 02:27:01 +0000 (UTC) (envelope-from frank@esperance-linux.co.uk) Received: from mailout.zetnet.co.uk (mailout.zetnet.co.uk [194.247.47.231]) by mx1.freebsd.org (Postfix) with ESMTP id 8DF048FC1F for ; Thu, 22 May 2008 02:27:00 +0000 (UTC) (envelope-from frank@esperance-linux.co.uk) Received: from irwell.zetnet.co.uk ([194.247.47.48] helo=zetnet.co.uk) by mailout.zetnet.co.uk with esmtp (Exim 4.63) (envelope-from ) id 1Jz0WB-00007E-1Q; Thu, 22 May 2008 03:26:59 +0100 Received: from melon.esperance-linux.co.uk (54-144.adsl.zetnet.co.uk [194.247.54.144]) by zetnet.co.uk (8.14.1/8.14.1/Debian-9) with ESMTP id m4M2QwPm013914; Thu, 22 May 2008 03:26:58 +0100 Received: by melon.esperance-linux.co.uk (Postfix, from userid 1001) id 35805FCA4AF; Thu, 22 May 2008 03:26:53 +0100 (BST) Date: Thu, 22 May 2008 03:26:53 +0100 From: Frank Shute To: "William O. Yates" Message-ID: <20080522022653.GB3334@melon.esperance-linux.co.uk> Mail-Followup-To: "William O. Yates" , freebsd-questions@freebsd.org References: <1211403063.43250@ns3.tru2life.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1211403063.43250@ns3.tru2life.net> User-Agent: Mutt/1.4.2.3i X-Face: *}~{PHnDTzvXPe'wl_-f%!@+r5; VLhb':*DsX%wEOPg\fDrXWQJf|2\,92"DdS%63t*BHDyQ|OWo@Gfjcd72eaN!4%NE{0]p)ihQ1MyFNtWL X-Operating-System: FreeBSD 6.3-RELEASE-p2 i386 X-Organisation: 'Esperance Linux' X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (zetnet.co.uk [194.247.46.1]); Thu, 22 May 2008 03:26:58 +0100 (BST) Cc: freebsd-questions@freebsd.org Subject: Re: vi secure X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Frank Shute List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 May 2008 02:27:02 -0000 On Wed, May 21, 2008 at 01:51:03PM -0700, William O. Yates wrote: > > [sent the below message thru the freebsd-security list with no > answers, hope for more from freebsd-questions] > > Recently started using vi macros. Show us the macro. > > When attempting to use one which accessed the external shell, got > the following message: > > "The ! command is not supported when the secure edit option is set." What does: :set show you? External commands work for me. Sure your vi isn't aliased? When doesn't it work? As root or ordinary user or both? What's your secure level?: $ sysctl -a | grep secure What does: $ whereis vi give you? and: $ uname -a > > When attempting to ":set nosecure" got: > > "set: the secure option may not be turned off." > > When attempting to "set nosecure" in my .exrc file, got: > > set nonumber .exrc, 44: set: the secure option may not be turned off > .exrc, 44: Ex command failed: pending commands discarded > > Looking through all the man pages, vi references, tutorials, and the > the oreilly vi "bible", can't find anything... > > Is "set secure" a compiled in setting? No. > > >From FreeBSD vi man page: > > -S Run with the secure edit option set, disallowing all > access to external programs. and secure [off] Turns off all > access to external programs. > > ..william.o.yates...hackware.at.tru2life.net...tru2life.info... -- Frank Contact info: http://www.shute.org.uk/misc/contact.html