home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / security / misc / 1807 < prev    next >
Encoding:
Text File  |  1992-11-20  |  1.6 KB  |  47 lines

  1. Newsgroups: comp.security.misc
  2. Path: sparky!uunet!mcsun!sun4nl!fwi.uva.nl!janw
  3. From: janw@fwi.uva.nl (Jan Wortelboer)
  4. Subject: Re: Setuid script - is this unsecure?
  5. Message-ID: <1992Nov20.135059.24347@fwi.uva.nl>
  6. Sender: news@fwi.uva.nl
  7. Nntp-Posting-Host: mail.fwi.uva.nl
  8. Organization: FWI, University of Amsterdam
  9. References: <1992Nov5.071354.24042@kth.se> <AMOSS.92Nov6102549@shuldig.cs.huji.ac.il> <1eg5tmINN9eh@cs.tut.fi>
  10. Date: Fri, 20 Nov 1992 13:50:59 GMT
  11. Lines: 34
  12.  
  13. hmj@cs.tut.fi (J{rvinen Hannu-Matti) writes:
  14.  
  15. >In article <AMOSS.92Nov6102549@shuldig.cs.huji.ac.il> amoss@shuldig.cs.huji.ac.il (Amos Shapira) writes:
  16. >>A general suggestion for a programme which will do what you want would be:
  17. >>
  18. >>main (ac, av)
  19. >>    int ac;
  20. >>    char **av;
  21. >>{
  22. >>    exec ("/usr/etc/mount", av);
  23. >>}
  24. >>
  25. >>and have the object of this C programme suid root.
  26.  
  27. >Equivalent would be that you let anybody execute mount (i.e., set
  28. >mount suid), which is not reasonable. Also you have to deny suid
  29. >programs on the floppy, and ensure that there does not exist special
  30. >devices on the floppy.
  31.  
  32. >I've written a set of programs (fdmkfs, fdmount, and fdumount) to give
  33. >users access to the floppy. They are available by anonymous ftp on
  34. >site cs.tut.fi (130.230.4.2), file pub/src/tut/floppy.shar. Use on
  35. >your own risk.
  36.  
  37. Everybode executing mount isn't indeed a good idea:
  38. How about mount /dev/fd /etc
  39.  
  40.  
  41. Jan.
  42. -- 
  43. Jan Wortelboer,  University of Amsterdam
  44.                  Computer Science Department  Email: janw@fwi.uva.nl
  45. Unix             Kruislaan 403 Kamer F003     Phone: +31 20 525 7501
  46. systems manager  1098 SJ AMSTERDAM            Fax  : +31 20 525 7490
  47.