Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Aug 2002 17:13:24 -0700 (PDT)
From:      Doug Silver <dsilver@urchin.com>
To:        Bsd Neophyte <bsdneophyte@yahoo.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: vi errors... unable to edit my .shrc file
Message-ID:  <Pine.LNX.4.21.0208231709530.31907-100000@danzig.sd.quantified.net>
In-Reply-To: <20020823233344.87510.qmail@web20104.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 23 Aug 2002, 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.
> 
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.21.0208231709530.31907-100000>