home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / security / misc / 1641 < prev    next >
Encoding:
Internet Message Format  |  1992-11-04  |  1.7 KB

  1. Path: sparky!uunet!olivea!spool.mu.edu!agate!doc.ic.ac.uk!uknet!mcsun!sunic!kth.se!cyklop.nada.kth.se!paf
  2. From: paf@cyklop.nada.kth.se (Patrik Fltstrm)
  3. Newsgroups: comp.security.misc
  4. Subject: Re: Setuid script - is this unsecure?
  5. Message-ID: <1992Nov5.071354.24042@kth.se>
  6. Date: 5 Nov 92 07:13:54 GMT
  7. Sender: usenet@kth.se (Usenet)
  8. Organization: Royal Institute of Technology, Stockholm, Sweden
  9. Lines: 28
  10. Nntp-Posting-Host: cyklop.nada.kth.se
  11.  
  12. In article <1992Nov5.030530.24039@zip.eecs.umich.edu> chiner@nova.gmi.edu writes:
  13. >rickt@bnr.co.uk (Rick Tait) writes:
  14. >: I recently installed these shell scripts on my machine (on which I am root),
  15. >: and I'd like to know if I'm compromising it's security. Basically, they
  16. >: just allow the users to mount/umount/eject the floppy disk (pcfs).
  17. >
  18. >:     /usr/etc/mount -t pcfs /dev/fd0 /pcfs
  19. >                            ^-o nosuid
  20. >: 
  21. >and some other problems...  I'll point out, that all the mount commands
  22. >need a -o nosuid...  otherwise, anyone who can get a root shell on a disk,
  23. >can get root on your system...
  24.  
  25. Because he is mounting the floppy as a PC-filesystem and not a BSD
  26. filesystem (-t pcfs), there is no need for the nosuid switch.
  27.  
  28. But IF you have mounted it as a BSD filesystem, you have needed
  29. the nosuid switch and also a switch for nodev (do not accept
  30. devices on this device) which you don't have in SunOS, well, not
  31. in 4.1.3 at least. 
  32.  
  33. The switch nodev and nosuid is in BSD4.4 so I still hope that users
  34. can be able to mount there own floppies in the future. You know, even
  35. if backups are made every hour, they can fail, and it's very
  36. comfortable for a user to at least be able to take care of his/her own
  37. files.
  38.  
  39.        paf
  40.