Recently I tried to use WMI on one share and allowed the user to read and write. No longer works using 0x1 (FILE_READ_DATA / FILE_LIST_DIRECTORY) and 0x2 (FILE_WRITE_DATA / FILE_ADD_FILE). The installation of all the flags gave me complete control.
Which flags do I use to read, change and set full control stake permissions, respectively?
I have detected the following from the test-and-error:
reading You need to use 0x1200A 9 for permission. This corresponds to the following flags:
FILE_READ_DATA (file) or FILE_LIST_DIRECTORY (directory) 1 (0x1) FILE_READ_EA 8 (0x8) FILE_EXECUTE (file) or FILE_TRAVERSE (directory) 32 (0x20) 128 FILE_READ_ATTRIBUTES (0x80) READ_CONTROL 131,072 (0x20000) synchronized 1048576 (0x100000) allowed change is needed in order to 0x1301BF use. This corresponds to the following additional flags:
FILE_WRITE_DATA (file) or FILE_ADD_FILE (directory) 2 (0x2) FILE_APPEND_DATA (file) or FILE_ADD_SUBDIRECTORY (directory) 4 (0x4) FILE_WRITE_EA 16 (0x10) FILE_WRITE_ATTRIBUTES 256 (0x100) DELETE 65536 (0x10000) the need to use you 0x1F01FF full control permission that corresponds to the following additional flags:
< code> Fail_dilit_chaild 64 (0x40) Write_ds 262,144 (0x40000) Write_onr 524288 (0x80000)
No comments:
Post a Comment