Date: Fri, 23 Aug 2002 22:37:09 -0400 From: "C. A. Daelhousen" <cd9@buffalo.edu> To: Bsd Neophyte <bsdneophyte@yahoo.com> Cc: Doug Silver <dsilver@urchin.com>, freebsd-questions@FreeBSD.ORG Subject: Re: vi errors... unable to edit my .shrc file Message-ID: <20020823223709.B353@selvirjin.alltel.net> In-Reply-To: <20020823233344.87510.qmail@web20104.mail.yahoo.com>; from bsdneophyte@yahoo.com on Fri, Aug 23, 2002 at 04:33:44PM -0700 References: <Pine.LNX.4.21.0208231528200.31907-100000@danzig.sd.quantified.net> <20020823233344.87510.qmail@web20104.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Aug 23, 2002 at 04:33:44PM -0700, Bsd Neophyte wrote: > > --- Doug Silver <dsilver@urchin.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020823223709.B353>