cacls.exe php in windows

0

I was looking, but I did not find much information about it.

I need to assign pemis to directories in windows from PHP. They told me that as a mod it does not work in windows, I used cacls.exe, but I can not find a way to implement it.

Is there an official guide (or not) to follow step by step?

    
asked by Pepemujica 01.02.2017 в 18:18
source

1 answer

0

For Windows Server 2008, Windows Server 2012, Windows 8 (y superiores) you must use icacls .

Examples in PHP using operadores de ejecución and var_dump

  • Display users and privileges:

    var_dump('icacls test');
    
  • Grant full user control Marcos :

    var_dump('icacls test /grant Marcos:(F)');
    
  • Remove full control from user Marcos :

    var_dump('icacls test /deny Marcos:(F)');
    
answered by 01.02.2017 в 21:46