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 Inheritence


Question:

Using this command wntAccessAdd( server-name, resource/share-name, account-name, object-type, access-string [, flags])

Can we have permission applied to folder, subfolders and files.

Answer:

On WinNT v4.0 & older, you control that with the object type [300, 301, 302 & 303].

On Win2K [WinNT v5.0] & newer, you control this by specifying the inheritance flags in the ACE that you are adding to the DACL [permissions list] for a specific user or group. The wntSecurityGet() & wntAccessMod() functions can be used to control which folders & files are allowed to inherit permissions from their parent folders. You may selectively block inheritance if you desire to do so. You always specify object type 300 for folders & files as the other object types of 301, 302 & 303 will be automatically converted to 300.


Article ID:   W17069
File Created: 2007:07:03:14:28:04
Last Updated: 2007:07:03:14:28:04