From owner-freebsd-questions Wed Nov 13 14:24:56 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 F123337B401 for ; Wed, 13 Nov 2002 14:24:54 -0800 (PST) Received: from blacklamb.mykitchentable.net (207-173-241-209.bras01.elk.ca.frontiernet.net [207.173.241.209]) by mx1.FreeBSD.org (Postfix) with ESMTP id 67AB543E3B for ; Wed, 13 Nov 2002 14:24:54 -0800 (PST) (envelope-from drew@mykitchentable.net) Received: from tagalong (unknown [165.107.42.110]) by blacklamb.mykitchentable.net (Postfix) with SMTP id 90CFEEE571; Wed, 13 Nov 2002 14:24:48 -0800 (PST) Message-ID: <03f801c28b63$7a2da4b0$6e2a6ba5@tagalong> From: "Drew Tomlinson" To: , "FreeBSD Questions" References: <03c701c28b42$94efc880$6e2a6ba5@tagalong> <20021113183850.GI72253@sub21-156.member.dsl-only.net> Subject: Re: vi Error - Permission Denied - SOLVED Date: Wed, 13 Nov 2002 14:24:48 -0800 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 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 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 ----- Original Message ----- From: "Nathan Kinkade" To: "FreeBSD Questions" Sent: Wednesday, November 13, 2002 10:38 AM Subject: Re: vi Error - Permission Denied > On Wed, Nov 13, 2002 at 10:29:19AM -0800, Drew Tomlinson wrote: > > 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? > > > > Thanks, > > > > Drew > > >From the vi manpage: > "directory, dir [environment variable TMPDIR, or /tmp] > The directory where temporary files are created." > > Try an `ls -l /` and check the mode of /tmp.....also try an > `echo $TMPDIR` and see if it is set, and if so, what it points to. Thanks for nudging me in the right direction. On the machine that couldn't run vi, /tmp was a symlink to /usr/tmp, not /var/tmp. Thus I was not comparing apples to apples. I copies the contents of /usr/tmp to /var/tmp and created the appropriate symlink. Everything works now. Thanks again, Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message