Date: Thu, 22 May 2008 03:26:53 +0100 From: Frank Shute <frank@shute.org.uk> To: "William O. Yates" <hackware@tru2life.net> Cc: freebsd-questions@freebsd.org Subject: Re: vi secure Message-ID: <20080522022653.GB3334@melon.esperance-linux.co.uk> In-Reply-To: <1211403063.43250@ns3.tru2life.net> References: <1211403063.43250@ns3.tru2life.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080522022653.GB3334>