home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / linux / 15823 < prev    next >
Encoding:
Internet Message Format  |  1992-11-06  |  1.9 KB

  1. Path: sparky!uunet!portal!lll-winken!cert!news.sei.cmu.edu!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!olivea!pagesat!spssig.spss.com!news.oc.com!utacfd.uta.edu!trsvax!rwsys!jmd386!jdoss
  2. From: jdoss@jmd386.lonestar.org (Joe M. Doss)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: Security Alert w/ uemacs3.11
  5. Message-ID: <1992Nov3.184913.5560@jmd386.lonestar.org>
  6. Date: 3 Nov 92 18:49:13 GMT
  7. References: <1992Oct30.183300.14296@athena.mit.edu>
  8. Organization: JD's home system
  9. Lines: 40
  10.  
  11. In article <1992Oct30.183300.14296@athena.mit.edu> zabka@infpav4.kfk.de (Zabka) writes:
  12. > 1. Logged in as nonprivileged user rza
  13. > 2. rza % ll /etc/profile
  14. > -rw-r--r--     root    root    <date>        /etc/profile
  15. >                 
  16. > 3. rza % emacs /etc/profile
  17. >    ...edit...edit...
  18. >    ^X^S
  19. >  
  20. >  --> uemacs tells me: wrote 23 lines
  21. >         Although the file should have been readonly!
  22. > 4. rza % ll /etc/profile
  23. > -rw-------    rza    users    <date>        /etc/profile
  24. >     !!!!! ___OOOPS!____ !!!!
  25. >  I think everybody should be warned about this behaviour. Haven't looked
  26. >  at the sources yet, but I expect it to be a bug in uemacs rather than in 
  27. >  Linux.
  28.  
  29. It looks like rza has write permissions on directory /etc.  By default,
  30. uemacs renames the original file to a backup name, then writes the changed
  31. file as a brand-new file, then unlinks the backup after the successful
  32. write.  A user does not have to have write permission on a file to rename
  33. or delete it, just write permission on the **directory** where the file lives.
  34.  
  35. Check the permissions on /etc - you should find something like:
  36.  
  37. drwxrwxrwx   root  system     <date>  /etc
  38.  
  39. -- 
  40. ---------------------------------------------------------------------------
  41. |     Joe M. Doss, Jr.                     (standard disclaimer applies)  |
  42. |  jdoss@jmd386.lonestar.org                  <insert cute quote here>    |
  43. ---------------------------------------------------------------------------
  44.