*BSD News Article 83584


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!news.idt.net!news.stealth.net!demos!news.uni-stuttgart.de!news.belwue.de!news-stu1.dfn.de!news-mue1.dfn.de!news-nue1.dfn.de!uni-erlangen.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: Why chown(2) is privileged?
Date: 25 Nov 1996 23:35:04 GMT
Organization: Private BSD site, Dresden
Lines: 19
Message-ID: <57daf8$3gb@uriah.heep.sax.de>
References: <CANDY.96Oct24222129@xxx.fct.kgc.co.jp>
  <w7iv7cjv2t.fsf@mud.imperium.net> <847786081.259851@panacea.insight.co.za>
  <E0vMsx.Bp0@cogsci.ed.ac.uk> <56r47r$3sr@uriah.heep.sax.de>
  <E1AECn.3rG@cogsci.ed.ac.uk>
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

richard@cogsci.ed.ac.uk (Richard Tobin) wrote:

> >...and perhaps to prevent people from shooting in their feet.  Try
> >unpacking a tar tape/file on a SysV where the files and directories
> >are owned by root and are not writable by you
> 
> Well, it does have that effect, but if chown were allowed, the Right
> Solution would be for tar to not chown each directory until *after*
> writing all the files and subdirectories in it.

...the SysV tar does it this way.  Still, you can't remove them again
without the help of your sysadmin.

-- 
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. ;-)