home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / winbase / security / winnt / sd_flppy / readme.txt < prev    next >
Text File  |  1996-04-19  |  4KB  |  89 lines

  1. How to Put a DACL on Floppy Drives
  2.  
  3.  
  4. SUMMARY
  5. =======
  6.  
  7. There is no way to put a DACL on the floppy drives or on
  8. the COM ports with REGEDT32, or using the Control Panel or other
  9. part of the user interface. Also, there is no way to use the
  10. Win32 API to put a DACL on the floppy drives or on the COM ports
  11. that survives reboots.
  12.  
  13. However, the SD_FLPPY sample does put DACLs on the floppy drives or on
  14. the COM ports that survive logoff and logon; that is, these DACLs
  15. are on the floppy drives or on the COM ports until the next reboot.
  16. This sample is a good starting place for anyone writing code to apply DACLs.
  17.  
  18. A version of this sample program can be installed as a service, so
  19. that each time the machine boots up the DACLs are automatically re-applied.
  20.  
  21. This sample is not a supported utility.
  22.  
  23. MORE INFORMATION
  24. ================
  25.  
  26. There are possibly as many desired user interfaces to this sort of
  27. functionality as there are people thinking about this, so it is
  28. not a purpose of this sample (or the service variation of
  29. it) to present an incredibly cool user interface to how the
  30. DACLs get applied. A very simplistic approach is taken to the
  31. user interface.
  32.  
  33. To run
  34. ------
  35.  
  36. Type sd_flppy to lock the \\.\A: and \\.\B: devices.
  37.  
  38. You can optionally put SD_FLPPY.EXE in the Startup group or a logon script.
  39.  
  40. Notes
  41. -----
  42.  
  43. The version of this program that is packaged as a service is
  44. in this same directory and is built along with SD_FLPPY.EXE by
  45. the same makefile.
  46.  
  47. The packaged-as-a-service approach might better suit people who
  48. need to change the DACL on the floppy drives without requiring a
  49. reboot or logoff. After installing the FLOPLOCK service on
  50. the machine, the client application, CHGFLPSD can be used over the
  51. network to lock, unlock or query the floppy-locked-state of any
  52. machine where the FLOPLOCK service is running.
  53.  
  54. So, this packaged-as-a-service approach might better suit people
  55. that would like to be able to inquire over the net what the
  56. DACLs are on the floppy drives of particular machines (to check
  57. or audit them). This approach might better suit people that
  58. would prefer that the DACLs be applied as the system boots up so
  59. the DACLs are applied before any user has logged on at the keyboard.
  60.  
  61. The packaged-as-a-service approach is more aligned with the notion
  62. of protecting the floppies as a resource on a particular
  63. _machine_ (regardless of who if anyone is logged on), whereas
  64. the SD_FLPPY approach (running an .exe at logon time) is
  65. more along the lines of keeping a particular user from using
  66. the floppies on any machine that that user might use. However,
  67. once the user has logged onto the machine and locked the
  68. floppies with SD_FLPPY the floppies will stay locked until
  69. reboot. Of course a utility could easily be written that could
  70. run in the startup group of a different authorized user to force the
  71. floppies on any machine this user logs onto to be unlocked.
  72.  
  73. As noted above, the FLOPLOCK service is built by the single
  74. makefile in this directory. FLOPLOCK.EXE is the main element of
  75. the packaged-as-a-service version. FLOPLOCK installs as a service, using
  76. INSTSRV.EXE. INSTSRV.EXE, as well as CHGFLPSD.EXE, is also built by the
  77. single makefile in this directory
  78.  
  79. Run "instsrv" to get help on the switches to use when running
  80. INSTSRV.EXE to install the service.
  81.  
  82. FLOPLOCK creates a named pipe which CHGFLPSD opens to pass
  83. over the lock/unlock/query operations to a particular machine
  84. running FLOPLOCK.EXE - the named pipe is at all times protected
  85. by an Admins-only DACL
  86.  
  87. Run "chgflpsd" to get help on the switches to use when running
  88. CHGFLPSD.EXE.
  89.