Talk:AccessControl plug-in: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
(Set the append/modify flag for ACLs)
No edit summary
Line 14: Line 14:
== Set the append/modify flag for ACLs ==
== Set the append/modify flag for ACLs ==


If you want to set the append/modify flag (in German: ändern) for files/directories, set the accesscontrol flag to: "GenericRead + GenericWrite + GenericExecute"
If you want to set the append/modify flag (in German: ändern) for files/directories, set the accesscontrol flag to:
<highlight-nsis>
"GenericRead + GenericExecute + GenericWrite + Delete"
</highlight-nsis>


== Usage Example ==
== Usage Example ==
Line 21: Line 24:
# The user can also append data or modify files.
# The user can also append data or modify files.
   AccessControl::GrantOnFile \
   AccessControl::GrantOnFile \
     "$INSTDIR\database" "(BU)" "GenericRead + GenericWrite + GenericExecute"
     "$INSTDIR\database" "(BU)" "GenericRead + GenericExecute + GenericWrite + Delete"


</highlight-nsis>
</highlight-nsis>

Revision as of 15:20, 10 September 2007

What about Vista support? Is it working on Vista?

--141.7.15.121 05:21, 26 June 2007 (PDT)

What about recursive rights?

--141.7.15.121 00:25, 30 July 2007 (PDT)

Vista support

I've tested AccessControl under Vista and it works great. Thx

Set the append/modify flag for ACLs

If you want to set the append/modify flag (in German: ändern) for files/directories, set the accesscontrol flag to:

 "GenericRead + GenericExecute + GenericWrite + Delete"

Usage Example

# Make the directory "$INSTDIR\database" read write accessible by all users.
# The user can also append data or modify files.
  AccessControl::GrantOnFile \
    "$INSTDIR\database" "(BU)" "GenericRead + GenericExecute + GenericWrite + Delete"