in reply to Re^5: Modifying NTFS File Permissions
in thread Modifying NTFS File Permissions

I really do appreciate your assistance but in all honesty I am not getting any useful information. I need to do this in Perl. You stated "If your perl script has sufficient authority to modify the permissions, then it has sufficient authority to use (I|X)cacls.exe to modify those permissions." While that may be true, it doesn't help at all. The Perl script has sufficient permission but as stated earlier, IIS6 won't let this happen. So, back to the exact same question I started with. How do I accomplish this in Perl?

Replies are listed 'Best First'.
Re^7: Modifying NTFS File Permissions
by BrowserUk (Patriarch) on May 23, 2009 at 04:12 UTC
    but as stated earlier, IIS6 won't let this happen.

    How can IIS stop it? If your Perl script has the authority to do it; then calling system to use a utility to do will also work unless there is some mysterious mechanism at work.

    Beside which, I already told you how to do it. You have to bit-wise OR the new permissions with the existing ones, before (re-)setting them.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.