WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

wNT
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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 files

If 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:   W13570
Filename:   wntAccessAdd and NTFS.txt
File Created: 2001:03:01:14:17:06
Last Updated: 2001:03:01:14:17:06