## Posts

Showing posts from February, 2016

### Replace inheritance permissions on folder/file using commandline in Windows server 2008

When you create a new folder or file (B) inside an existing folder (A) in Windows environment (It's Windows Server 2008 R2 in my case), B will inherit all the security access permissions of A. And you don't want that happen just like me. You can run this command in cmd to replace all the inherited aces (access control entries) from B with different ace set (the following will replace all the inherited trustee with domain admins and local administrators):

Please be noticed that if you run this command via a bash shell (cygwin) instead of the Windows's cmd, you have to escape the "\", "(", and ")" characters:

icacls "\\path\\to\\folder\\or\\file" /inheritance:r /grant:r "MYDOMAIN\\Domain Admins":$$OI$$$$CI$$F /grant:r "Administrators":$$OI$$$$CI$$F /T

This is r…

### Install MySQL-python using python-pip in Windows without errors

Assuming you have already installed python 2.7 and python-pip in your windows environment (windows 7 or later). Here are how you can install the MySQL driver painlessly:

Microsoft Visual C++ Compiler for Python 2.7

Install this package will get rid of the error: Unable to find vcvarsall.bat.

2. Install MySQL-python using wheel:

+ Install wheel using pip:

pip install wheel