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 / sidcln / readme.txt < prev    next >
Encoding:
Text File  |  1996-04-19  |  1.9 KB  |  52 lines

  1. Security Functions
  2.  
  3.  
  4. SUMMARY
  5. =======
  6.  
  7. The SIDCLN sample demonstrates some of the security functions. It
  8. provides a sample utility that recovers on-disk resources that remain 
  9. allocated to deleted user accounts.
  10.  
  11. MORE INFORMATION
  12. ================
  13.  
  14. The on-disk resources recovered are:
  15.  
  16.  - Files that are still owned by accounts that have been deleted are
  17.    assigned ownership to the account logged on when this sample is run.
  18.  
  19.  - ACEs for deleted accounts are deleted from the ACLs of files to which
  20.    the deleted accounts had been granted authorizations (such as Read
  21.    access).
  22.  
  23. It may be that running this sample as a utility has no practical value in 
  24. many environments, as the number of files belonging to deleted user accounts 
  25. will often be quite small and the number of bytes recovered on disk by 
  26. editing out ACEs for deleted accounts may not be worth the time it takes to 
  27. run this sample. This time can be significant when processing an entire hard 
  28. disk or partition.
  29.  
  30. Note: This sample is not a supported utility.
  31.  
  32. Usage
  33. -----
  34.  
  35. You must log on using an account that has the privilege to take file
  36. ownership and edit ACLs, such as Administrator.
  37.  
  38. The ACL editing part of this sample can only be exercised for files on an 
  39. NTFS partition.
  40.  
  41. Typical test scenario
  42. ---------------------
  43.  
  44. Create a user account or two and log on as each of these accounts in turn. 
  45. While logged on for each account, go to an NTFS partition and create a 
  46. couple of files so the test accounts each own a few files. Use the File 
  47. Manager or Windows Explorer to edit permissions for those files, so that 
  48. each test user has some authorities (such as Read) explicitly granted for 
  49. those files. Log on as Administrator and authorize each test user to a few 
  50. Administrator-owned files. Delete the test accounts. Run the sample in the 
  51. directories where you put the files that the test accounts own.
  52.