
EXAMPLE: CHANGING FILE PERMISSIONS
449
Example: Changing File Permissions
Program 15–5 completes the collection of file security functions. This function,
, repla ces the existing security descri ptor with a new
one, preserving the user and group SIDs but creating a new discreti onary ACL.
Program 15–5
Changing Securi ty Attributes
Comments on the File Permissions
When you’re running these programs, it is interesting to monitor the file sy stem
using the Windows Explorer. This utility cannot interpret the access-denied ACEs
and will not be able to display the permissions. The Windows NT 4.0 Explorer will
generate an exception on encountering an access- ...