Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!howland.reston.ans.net!tank.news.pipex.net!pipex!news.mathworks.com!fu-berlin.de!zrz.TU-Berlin.DE!news.tu-chemnitz.de!irz401!orion.sax.de!uriah.heep!news From: j@uriah.heep.sax.de (J Wunsch) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: changind file permissions for a symbolic link Date: 9 Jul 1996 21:17:47 GMT Organization: Private BSD site, Dresden Lines: 20 Message-ID: <4rui9r$5ho@uriah.heep.sax.de> References: <01bb6d2a.1c8123e0$38673fcb@simonh.addease.com.au> <31E1DF64.41C67EA6@eramp.net> Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) NNTP-Posting-Host: localhost.heep.sax.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: knews 0.9.6 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Syntax <syntax@eramp.net> wrote: > 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. That's wrong. It's only that they always inherit the features of their parent directory (owner, group, timestamps, permissions). All of these features are meaningless however (mostly -- only directories with the `sticky' bit set are tricky), since the permissions of the resource the link is pointing to are in effect when the link is being followed. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)