wntAccessAdd and NTFS
Keywords: wntAccessAdd and NTFS
Question:
I have problems to set permissions to a hole NTFS directory tree (700 Homedirs and tons of subdirs). I need RXD (Read, Execute, Delete) on dirs and D (Delete)on files and tried the following script:AddExtender("WWWNT34I.DLL") wntAccessAdd("\\server", "\\server\share\dir", "Help Desk", 303, "0:9:65536|0:2:1245353")(The access string was created by wntAccessGet)After that I have:
RXD on Dirs
RXD on existing Files!!
D on new filesIf I set permissions from NT all is working fine
RXD on Dirs
D on all Files!!!Answer:
Files, when new, inherit the status of the directory they are in. So for new files set the directory to D but not the files.Change script to:
AddExtender("WWWNT34I.DLL") wntAccessAdd("\\server", "\\server\HomeDir\%USERID%", "Help Desk", 303, "0:9:65536|0:2:65536") wntAccessAdd("\\server", "\\server\HomeDir\%USERID%", "Help Desk", 301, "0:9:65536|0:2:1245353")and it should work fine.
Article ID: W13570Filename: wntAccessAdd and NTFS.txt