Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!ames!sgi!shinobu!odin!ramoth.esd.sgi.com!msc From: msc@ramoth.esd.sgi.com (Mark Callow) Newsgroups: comp.sys.sgi Subject: Re: chown thru multiple directories Message-ID: <10177@odin.corp.sgi.com> Date: 10 Jul 90 20:40:50 GMT References: <9007072013.AA25848@mcirps2.med.nyu.edu> <1990Jul10.105223.27591@gorgo.ifi.unizh.ch> Sender: news@odin.corp.sgi.com Reply-To: msc@sgi.com Organization: Silicon Graphics Inc., Entry Systems Division Lines: 25 In article <1990Jul10.105223.27591@gorgo.ifi.unizh.ch>, meyer@gorgo.ifi.unizh.ch (Urs Meyer) writes: |> |> WARNING: |> There is a security leak in this procedure if the super-user executes |> the find command. If a file in the user's directory tree is a |> (symbolic) link, the file pointed to by the link will change ownership |> and not the link itself. Therefore, if the user has a link to /etc/passwd, |> he will own is afterwards. |> This is true at least up to IRIX 3.2.1. |> |> I really don't like the way symbolic links are implemented in IRIX. |> But, there have been enough discussions on that topic. The same exact thing happens with hard links. This isn't surprising since symbolic links were designed to be semantically the same as hard links. As far as I know symbolic links in IRIX are implemented identically to those in BSD and SunOS. I think this is a case of buyer beware of the sharp tools. -- From the TARDIS of Mark Callow msc@ramoth.sgi.com, ...{ames,decwrl}!sgi!msc "There is much virtue in a window. It is to a human being as a frame is to a painting, as a proscenium to a play. It strongly defines its content."