Showing posts with label su. Show all posts
Showing posts with label su. Show all posts

Sunday, March 11, 2012

The chown command equivalent in Windows 7

As 'su - chown' does not work in Cygwin, there is a alternative in Windows 7.
Log in as the user the files should be changed TO and run Command Prompt as administrator.
Run the follow command (or similar one with different parameter combination)

> takeown /F <directory name> /R