home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / linux / 20505 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  1.9 KB

  1. Path: sparky!uunet!spool.mu.edu!agate!usenet.ins.cwru.edu!cert!news.sei.cmu.edu!fs7.ece.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!bg11+
  2. From: geek+@CMU.EDU (Brian E. Gallew)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: How do I provide the floppys to normal users????
  5. Message-ID: <wf=Szqi00VAzM=BgMz@andrew.cmu.edu>
  6. Date: 15 Dec 92 14:47:18 GMT
  7. References: <1992Dec14.160121.10722@wega.rz.uni-ulm.de>
  8.     <andrewc.724369870@aurora.cc.monash.edu.au>
  9. Organization: Administrative Computing & Info Services, Carnegie Mellon, Pittsburgh, PA
  10. Lines: 24
  11. In-Reply-To: <andrewc.724369870@aurora.cc.monash.edu.au>
  12.  
  13. andrewc@aurora.cc.monash.edu.au (Andrew J. Cosgriff !) writes:
  14. > Well, it depends...If you don't mind the security risk you could just make
  15. > mount and umount setuid root, although this is NOT a Good Thing (tm) if
  16. > you've got dial-in access...
  17.  
  18. Really bad idea!  Not only is there dial-in, but we've also also got TCP/IP!.
  19. > i guess you could make a setuid root script that checked what tty they're on
  20. > and what they're mounting, so they can only mount floppies and only when
  21.  
  22. The only problem with this is that linux ignores the setuid bit for
  23. shell scripts.  Too much of a security risk.  Write a simple C program
  24. which will exec mount to mount the drive passed as a parameter.  Make
  25. this executable setuid root.  Maybe get fancy and have it try
  26. different parameters depending on the return status of mount.  Maybe
  27. have it only mount certain devices for users on certain ttys.  Be creative!
  28.  
  29.                                   -Brian
  30.  
  31. -------------------------------------------------------------------------
  32. | "Are they dead?"                                                      |
  33. | "Does it matter?"                                                     |
  34. |   - Pugsley and Wednesday in "The Addams Family."                     |
  35. -------------------------------------------------------------------------
  36.