*BSD News Article 73162


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.mel.connect.com.au!news.mira.net.au!news.vbc.net!garlic.com!news.scruz.net!kithrup.com!news.Stanford.EDU!agate!theos.com!riscan.riscan.com!n1van.istar!van-bc!unixg.ubc.ca!news.bc.net!arclight.uoregon.edu!usenet.eel.ufl.edu!spool.mu.edu!sgigate.sgi.com!mr.net!news.clark.net!news.sprintlink.net!news-dc-2.sprintlink.net!news.nkn.net!dfw.nkn.net!usenet
From: Syntax <syntax@eramp.net>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: changind file permissions for a symbolic link
Date: Mon, 08 Jul 1996 23:27:51 -0500
Organization: National Knowledge Network
Lines: 21
Message-ID: <31E1DF64.41C67EA6@eramp.net>
References: <01bb6d2a.1c8123e0$38673fcb@simonh.addease.com.au>
NNTP-Posting-Host: 206.149.42.156
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0b5aGold (X11; I; FreeBSD 2.1.0-RELEASE i386)
CC: simonh@interconnect.com.au

Simon Harris wrote:
> 
> My /tmp directory is a symbolic link to /usr/tmp however when a user other
> than those (read me) in the wheel group try to read mail for example, they
> get
> /tmp/xxxxxxx permission denied. The file permissions on /usr/tmp allow
> anyone to do anything (probably not good) but even this doesn't work. when
> i try to set permissions for the symbolic link, nothing happens. Anyone?


If I understand symbolic links correctly they take on the mode of the
original file when they are created and can not be changed after that.
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.

I have my /tmp set at lrwxr-xr-x and /usr/tmp set at drwxrwxrwx and
my mail seems to work fine.

Hope this works and if I'm wrong then someone correct me.

Syntax