Tuesday, July 03, 2007

Changing object/folder permissions on the fly, using runas

Here is a tip to get access to that folder without have to log off and log back in as somebody with admin privs.

Use runas to get to the command prompt:
runas /user:Administrator "cmd.exe"

In the privileged command prompt, use the below command for folder "xyz", granting user "thisuser" full access:
cacls xyz /E /G thisuser:F

For more info, read the man page for cacls.

No comments:

About Me

My photo
Princeton, New Jersey, United States
I am an Information Technology Analyst with extensive background in the Clinical Industry that includes working for CROs, Pharmaceutical and Medical Diagnostic companies.