*BSD News Article 73674


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!cancer.vividnet.com!hunter.premier.net!news-res.gsl.net!news.gsl.net!news.mathworks.com!tank.news.pipex.net!pipex!oleane!jussieu.fr!rain.fr!francenet.fr!itesec!keltia.frmug.fr.net!not-for-mail
From: roberto@keltia.freenix.fr (Ollivier Robert)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: changind file permissions for a symbolic link
Date: 14 Jul 1996 12:20:43 GMT
Organization: Usenet Canal Historique
Lines: 19
Message-ID: <4saomr$4kg@keltia.freenix.fr>
References: <01bb6d2a.1c8123e0$38673fcb@simonh.addease.com.au> <31E1DF64.41C67EA6@eramp.net>
NNTP-Posting-Host: keltia.freenix.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

 [courtesy cc of this posting sent to cited author via email]

In article <31E1DF64.41C67EA6@eramp.net>, Syntax  <syntax@eramp.net> wrote:
> Therefor, in order to set your /tmp link you will need to remove the
> link and recreate it after setting the correct permissions on /usr/tmp.

No, permissions on the link itself are irrelevant.
 
Just set the permissions correctly on the target directory. 

> I have my /tmp set at lrwxr-xr-x and /usr/tmp set at drwxrwxrwx and

Having any world-writable directory 777 is a bad idea because it opens many
race condition related holes.  Always    use 1777 (drwxrwxrwt) for    /tmp,
/var/tmp and such.

-- 
Ollivier ROBERT  -=- FreeBSD: The daemon is FREE! -=-  roberto@freebsd.org
-=-=-=-=-=-=-=-=-=-=- FreeBSD 2.x FAQ maintainer -=-=-=-=-=-=-=-=-=-=-=-=-