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.

0 comments:

About Me

My Photo
Princeton, New Jersey, United States
I am a programmer by day and a network admin by night. While my primary specialty is developing secure database driven web applications for FDA regulated industries such as Pharmaceuticals, I am also a network administrator managing both windows and Linux networks. I am very passionate about open source technologies and use them in my daily work life as often as I can.