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.Hawaii.Edu!news.uoregon.edu!arclight.uoregon.edu!news.sprintlink.net!news-peer.sprintlink.net!news.sprintlink.net!news-pull.sprintlink.net!news.sprintlink.net!news-stk-3.sprintlink.net!news.cirrus.com!usenet From: Clint Wolff <clint_w@colorado.cirrus.com> Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Why chown(2) is privileged? Date: Wed, 13 Nov 1996 10:16:40 -0700 Organization: Cirrus Logic, Inc. Lines: 31 Message-ID: <328A0278.41C67EA6@colorado.cirrus.com> References: <CANDY.96Oct24222129@xxx.fct.kgc.co.jp> <w7iv7cjv2t.fsf@mud.imperium.net> <847786081.259851@panacea.insight.co.za> NNTP-Posting-Host: longs.colorado.cirrus.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.0Gold (X11; I; SunOS 4.1.3_U1 sun4m) Tony Harverson wrote: ; ; Mark Lehrer (edge@mud.imperium.net) wrote: ; : candy@fct.kgc.co.jp (Toshihiro Kanda) writes: ; ; : > Hello. Chown(2) fails if non super-user try to change the owner ; : > uid of his/her files. Why does BSD disallow non super-user to ; : > transfer ownership of files to the others? ; ; : Ok, i figured it out - in order for non-root users to use this ; : command, this would have to be a setuid root program... so it ; : is probably not worth the security risk; especially with a ; : program like chown!! ; ; chmod 4777 my_copy_of_csh ; chown root my_copy_of_csh ; ; Useful ne ? ; ; T :> Won't work... chown clears the setuid/setgid flags before changing the owner clint -- Underscores added to return address to defeat advertising engines. clintw@colorado.cirrus.com