Jump to content

verifying if inherited permissions is checked


Recommended Posts

I would like to modify permissions on folder and then reset them.

I can do this with permissions UDF

'?do=embed' frameborder='0' data-embedContent>>

I can do this

$dirpath =  'X:\test\test\test'
Local $arr[1][3],$aPerm[1][3] = [[@UserName, 1, $GENERIC_ALL]]
Local $SID = _GetObjectOwner($dirpath)
Local $owner = _LookupAccountSid($SID)
$dacl = _GetObjectDacl($dirpath)
_MergeDaclToArray($dacl,$arr)
$out = _EditObjectPermissions($dirpath, $aPerm,1,@UserName);,
MsgBox(0,'',@error & '  ' & $OUT & @CRLF)
$out = _SetObjectPermissions($dirpath, $arr, 1,$owner, 1)

but inherit permissons is not checked

There is a function to reset tree permissions.

I do not want to reset tree permisions, unless it was already set.

I could not find a way to do this, anyone have any ideas?

post-57673-0-46793600-1377883058_thumb.p

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...