home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / aux / 3440 < prev    next >
Encoding:
Text File  |  1992-09-12  |  1.7 KB  |  38 lines

  1. Newsgroups: comp.unix.aux
  2. Path: sparky!uunet!sun-barr!ames!nsisrv!jagubox!jim
  3. From: jim@jagubox.gsfc.nasa.gov (Jim Jagielski)
  4. Subject: Re: tar
  5. Message-ID: <1096@jagubox.gsfc.nasa.gov>
  6. Lines: 24
  7. Sender: usenet@nsisrv.gsfc.nasa.gov (Usenet)
  8. Nntp-Posting-Host: jagubox.gsfc.nasa.gov
  9. Reply-To: jim@jagubox.gsfc.nasa.gov (Jim Jagielski)
  10. Organization: NASA/Goddard Space Flight Center
  11. References: <DPASSAGE.92Sep11205455@eden.CS.Berkeley.EDU> <1992Sep12.060658.27698@nntpd.lkg.dec.com>
  12. Date: Sat, 12 Sep 1992 13:54:50 GMT
  13.  
  14. halpin@vsg1.dsg.dec.com (Stephen E. Halpin) writes:
  15.  
  16. >This version of tar requires you to use the 'o' option to untar files
  17. >under the uid of the person running tar.  I just browsed /usr/bin/tar,
  18. >and it doesnt appear to have setuid set, which would almost imply anyone
  19. >could create files owned by someone else.  If one of the users you can
  20. >create files as is root, then youre really scrod because anyone can
  21. >write a tar file with a root uid and their favorite executable.  Has
  22. >anyone actually tried this to see if its possible??  -Steve
  23.  
  24. It's no big deal to create files and then chown them to someone else;
  25. of course some systems are more restrictive about this now. The rub is
  26. whether you can SUID the file and then chown it to root and if the SUID
  27. bit remains set: under A/UX and about 99.995% of all UNIXs out there,
  28. this doesn't happen.
  29.  
  30. chown/chgrp operations are different between SysV and BSD; BSD only
  31. allows root to chown or else it checks the real and effective UIDs of
  32. the process, SysV allows anyone to chown.
  33. -- 
  34.     Jim Jagielski               | "This is supposed to be a happy occasion.
  35.     jim@jagubox.gsfc.nasa.gov   |  Let's not bicker and argue about who
  36.     NASA/GSFC, Code 734.4       |  killed who."
  37.     Greenbelt, MD 20771         |
  38.