From owner-freebsd-questions Fri Aug 23 19:38:10 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 60C6737B400 for ; Fri, 23 Aug 2002 19:38:08 -0700 (PDT) Received: from mta01-srv.alltel.net (mta01.alltel.net [166.102.165.143]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B4BE43E77 for ; Fri, 23 Aug 2002 19:38:07 -0700 (PDT) (envelope-from cd9@buffalo.edu) Received: from selvirjin.alltel.net ([162.39.7.186]) by mta01-srv.alltel.net with ESMTP id <20020824023757.FJWH19665.mta01-srv.alltel.net@selvirjin.alltel.net> for ; Fri, 23 Aug 2002 21:37:57 -0500 Received: from dragon by selvirjin.alltel.net with local (Exim 3.36 #1) id 17iQnV-0000jD-00; Fri, 23 Aug 2002 22:37:09 -0400 Date: Fri, 23 Aug 2002 22:37:09 -0400 From: "C. A. Daelhousen" To: Bsd Neophyte Cc: Doug Silver , freebsd-questions@FreeBSD.ORG Subject: Re: vi errors... unable to edit my .shrc file Message-ID: <20020823223709.B353@selvirjin.alltel.net> Mail-Followup-To: Bsd Neophyte , Doug Silver , freebsd-questions@FreeBSD.ORG References: <20020823233344.87510.qmail@web20104.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020823233344.87510.qmail@web20104.mail.yahoo.com>; from bsdneophyte@yahoo.com on Fri, Aug 23, 2002 at 04:33:44PM -0700 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, Aug 23, 2002 at 04:33:44PM -0700, 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. > Note the leading '1' on the chmod permissions. That's the "sticky" bit, which means (for directories) that only the owner of a file in that directory can delete it. (Of course, root can, too.) For instance: drwxrwxrwt (note final t: that's stickiness) -- /var/tmp -rw------- dragon wheel some_file -rw------- chris users another_file Despite the directory being world-writable, dragon can't delete another_file, and chris can't delete some_file. This is caused by the sticky bit. Go forth and find a good UNIX permissions tutorial. -- ..: Chad Daelhousen == cd9@buffalo.edu :.........: sig v3.1 :... : Programming for 10 +/- 2 years (50 +/- 10% of a lifetime) : :.............Perl will be the first to implement mind reading.: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message