home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / linux / 6695 < prev    next >
Encoding:
Text File  |  1992-07-25  |  1.2 KB  |  31 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!gatech!psuvax1!atlantis.psu.edu!copland!bairstow
  3. From: bairstow@copland.psu.edu (Steven Bairstow)
  4. Subject: Re: Logging as root....bad idea?
  5. Message-ID: <7u71Hg&!o8@atlantis.psu.edu>
  6. Sender: news@atlantis.psu.edu (Usenet)
  7. Organization: Penn State University
  8. References: <1992Jul23.145332.1393@sspiff.ampr.ab.ca> <*6a1H7ren8@atlantis.psu.edu> <1992Jul23.231007.19451@colorado.edu>
  9. Date: Sat, 25 Jul 92 18:05:42 GMT
  10. Lines: 19
  11.  
  12. In article <1992Jul23.231007.19451@colorado.edu> drew@ophelia.cs.colorado.edu (Drew Eckhardt) writes:
  13. >
  14. >>     [I was wondering how I could erase other's files.]
  15. >
  16. >1.  Check the permissions on the directory.  If it is writeable to you,
  17. >    but not sticky (bit 1000), you will be able to delete things 
  18. >    in it.  /tmp, /usr/tmp, /usr/preserve, and any other world 
  19. >    writeable directories should be sticky too.
  20. >
  21. >2.  What is your UID?  Under bash, the UID shell variable will be set.
  22. >    If you have a second entry in the password file with UID 
  23. >    0, that will be treated as root too.
  24. >     
  25.  
  26. The first paragraph says it all. I hadn't thought that you are changing the 
  27. directory not really changing the file. Many have pointed this out; I've 
  28. stopped replying to mail. 
  29.  
  30.  
  31.