From owner-freebsd-questions Wed Nov 13 10:58:43 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 10AAF37B401 for ; Wed, 13 Nov 2002 10:58:40 -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 46EB043E3B for ; Wed, 13 Nov 2002 10:58:39 -0800 (PST) (envelope-from drew@mykitchentable.net) Received: from tagalong (unknown [165.107.42.110]) by blacklamb.mykitchentable.net (Postfix) with SMTP id 235CDEE5A1; Wed, 13 Nov 2002 10:58:38 -0800 (PST) Message-ID: <03d501c28b46$acc66550$6e2a6ba5@tagalong> From: "Drew Tomlinson" To: "Matthew Emmerton" , "FreeBSD Questions" References: <03c701c28b42$94efc880$6e2a6ba5@tagalong> <008701c28b44$2c596bd0$1200a8c0@gsicomp.on.ca> Subject: Re: vi Error - Permission Denied Date: Wed, 13 Nov 2002 10:58:37 -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: "Matthew Emmerton" Sent: Wednesday, November 13, 2002 10:40 AM > > 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. Thanks for your response, however I don't think this is my problem. My /var directory doesn't contain any files, just directories: blacklamb# ll /var drwxr-xr-x 2 root wheel 512 Jun 12 2001 account drwxr-xr-x 4 root wheel 512 Jun 12 2001 at drwxr-x--- 2 root wheel 512 Oct 9 03:01 backups drwxr-x--- 2 root wheel 512 Jun 13 2001 crash drwxr-x--- 3 root wheel 512 Jul 6 12:10 cron drwxr-xr-x 6 root wheel 512 Jun 15 08:56 db dr-xr-xr-x 2 root wheel 512 Nov 8 06:07 empty drwxrwxr-x 5 root games 512 Jun 13 2001 games drwx------ 2 root wheel 512 Sep 20 2001 heimdal drwxr-xr-x 3 root wheel 512 Jun 13 09:53 lib drwxr-xr-x 3 root wheel 512 Dec 5 2001 local drwxr-xr-x 2 root wheel 512 Nov 13 10:45 lock drwxr-xr-x 5 root wheel 7168 Nov 13 00:00 log drwxrwxr-x 2 root mail 512 Oct 8 10:07 mail drwxr-xr-x 2 daemon wheel 512 Jun 13 2001 msgs drwxr-xr-x 2 root wheel 512 Nov 12 15:29 net-snmp drwxr-xr-x 2 root wheel 512 Jun 12 2001 preserve drwxr-xr-x 3 root wheel 1024 Nov 13 09:00 run drwxrwxr-x 2 root daemon 512 Jun 12 2001 rwho drwxr-xr-x 13 root wheel 512 Nov 13 08:45 spool drwxrwxrwt 3 root wheel 512 Nov 13 08:45 tmp drwxr-xr-x 2 root wheel 512 Nov 8 20:51 yp /var/tmp only contains the vi.recover directory and /var/tmp/vi.recover is empty. > 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. Both of my servers are small home machines. I am the only user. Any other ideas? Thanks, Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message