From owner-freebsd-questions Wed Nov 13 10:40:49 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE61837B401 for ; Wed, 13 Nov 2002 10:40:47 -0800 (PST) Received: from tomts15-srv.bellnexxia.net (tomts15.bellnexxia.net [209.226.175.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 262C543E75 for ; Wed, 13 Nov 2002 10:40:45 -0800 (PST) (envelope-from matt@gsicomp.on.ca) Received: from xena.gsicomp.on.ca ([65.95.184.186]) by tomts15-srv.bellnexxia.net (InterMail vM.5.01.04.19 201-253-122-122-119-20020516) with ESMTP id <20021113184044.MIIS21453.tomts15-srv.bellnexxia.net@xena.gsicomp.on.ca>; Wed, 13 Nov 2002 13:40:44 -0500 Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by xena.gsicomp.on.ca (8.11.3/8.11.3) with SMTP id gADIi2U11227; Wed, 13 Nov 2002 13:44:02 -0500 (EST) (envelope-from matt@gsicomp.on.ca) Message-ID: <008701c28b44$2c596bd0$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: "Drew Tomlinson" , "FreeBSD Questions" References: <03c701c28b42$94efc880$6e2a6ba5@tagalong> Subject: Re: vi Error - Permission Denied Date: Wed, 13 Nov 2002 13:40:42 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > I've decided to try and wean myself off ee and move to vi. I have two > boxes, both running 4.7-RELEASE-p1. On one, I tried the following > logged on with normal user privileges: > > blacklamb> vi practice > ex/vi: Error: Unable to create temporary file: Permission denied > > A google search on this error suggests that permissions are not set > correctly on /var/tmp and /var/tmp/vi.recover so I check them and they > appear to be OK. > > blacklamb# ls -ld /var/tmp > drwxrwxrwt 3 root wheel 512 Nov 13 08:45 /var/tmp > > blacklamb# ls -ld /var/tmp/vi.recover > drwxrwxrwt 2 root wheel 512 Nov 10 12:22 /var/tmp/vi.recover > > So I check my other system and the permissions are the same, yet I can > use vi logged on with normal privledges. Any ideas on what is wrong > here? Usually what this means is that the temporary filename that vi has generated and is attempting to use is _the same_ as an existing temporary file in /var/tmp. I don't usually see this on my small FreeBSD machines at home, but I do see this quite frequently on the large multi-user (200+) AIX machines that I use at work where it's not uncommon for people to have 4 or 5 instances of vi running at once. -- Matt Emmerton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message