Setting file security with JWSCL

Sometimes it is necessary to change the security settings of a file or folder for getting or denying write access. With JWSCL this task is made very easy. However there are some pitfalls to avoid.
The following code will also be available in the example section of the source code. The application gets a file or [...]

ACE order

The order of access control elements in an access control list is the following:

explicit Deny elements
explicit Allow elements
inherited Deny elements
inherited Deny elements

It is also called the canonical order.
convert this post to pdf.

Many developers know that mysterious parameter some WinAPI function offer to use. What I am talking about is a parameter called lpSecurityAttributes. The documentation states that it allows to change the security descriptor of the desired element. The most known function is CreateFile which I want to use here. It allows to create a file [...]

Paypal donation (EUR)

Amount:
Website(Optional):

 

July 2009
M T W T F S S
« May    
 12345
6789101112
13141516171819
20212223242526
2728293031