From owner-freebsd-questions Fri Aug 23 17:13:33 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 B756437B40A for ; Fri, 23 Aug 2002 17:13:22 -0700 (PDT) Received: from mail.urchin.com (ns2.quantified.com [63.212.171.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 58C8343E77 for ; Fri, 23 Aug 2002 17:13:22 -0700 (PDT) (envelope-from dsilver@urchin.com) Received: from danzig.sd.quantified.net (web.quantified.com [63.212.171.5]) by mail.urchin.com (8.12.1/8.12.1) with ESMTP id g7O0FAkA071387; Fri, 23 Aug 2002 17:14:48 -0701 (PDT) (envelope-from dsilver@urchin.com) Date: Fri, 23 Aug 2002 17:13:24 -0700 (PDT) From: Doug Silver X-Sender: dsilver@danzig.sd.quantified.net To: Bsd Neophyte Cc: freebsd-questions@FreeBSD.ORG Subject: Re: vi errors... unable to edit my .shrc file In-Reply-To: <20020823233344.87510.qmail@web20104.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Filter-Version: 1.7 (mail.urchin.com) 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 On Fri, 23 Aug 2002, Bsd Neophyte wrote: > > --- Doug Silver wrote: > > Make sure the symlinks from /var/tmp are correct and the permissions are > > like this: > > drwxrwxrwt 3 root wheel 512 Aug 23 15:31 tmp/ > > > > If not, do a "chmod 1777 /var/tmp" (for example) to fix it. > > > > /var/tmp/vi.recover should have the same permissions too. > > this is what i was going to do... but someone said this would cause > problems because it would allow others to delete tmp files that did not > belong to them. > > should i go ahead and to it anyways? > > -Sameer > By definition, the tmp area is a world writable scratch directory. General users would not be able to remove files owned by other users unless the file permissions allowed them to. Also, a lot of programs count on permissions to be set a certain way, which you just found out that vi is one of them. So yes, change the permissions on /tmp, /usr/tmp, /var/tmp to be 1777. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Doug Silver Network Manager Urchin Software Corp. http://www.urchin.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message