View Single Post
Old 10-30-09, 08:18 AM   #2
Join Date: Mar 2004
Posts: 15,486
Default Re: Old files blocked.

Run command line as administrator:

Linux and Unixish system comes with chmod and other commands to setup/change access permission from command line/shell.

However, when it comes to windows chmod is not available. Windows comes with a special command line utility called CACLS.

You can use it as follows:
CACLS files /e /p {USERNA****:{PERMISSION}


* /p : Set new permission
* /e : Edit permission and kept old permission as it is i.e. edit ACL instead of replacing it.
* {USERNA**** : Name of user
* {PERMISSION} : Permission can be:
o R - Read
o W - Write
o C - Change (write)
o F - Full control

For example grant Rocky Full (F) control with following command (type at Windows command prompt):

C:> CACLS files /e /p rocky:f

Read complete help by typing following command:

C:> cacls /?
Use this to modify permissions. There's an option to inherit the permissions, so it should affect all files. Alternatively, you can pull up Tools -> Folder Options, then uncheck the "User Sharing Wizard" Box under View. Then right click on the folder to change permissions and add your username. Again, you must be admin.
ViN86 is offline   Reply With Quote