Change folder permissions in Windows

Solved
Dacarn Posted messages 9 Status Membre -  
 nono -
Hello,

I hesitated before putting this message in the Windows section, but I think it's the best solution.

So here it is, I want to modify the permissions of a folder (which happens to be C:\Program Files) so that any authenticated user of a domain (this part is already configured) can have write rights in addition to read and execute rights.

Note that it's not modification rights but strictly write rights.

I want to emphasize that the rights are only applied to this folder and not recursively!

So far, no major problem. I'll be told, "Go to properties/security/etc..."

My issue is that I need to do this via command line with DOS.

And there, I can't find a solution...

Thanks in advance if you have any ideas.
Configuration: Windows XP SP2

9 réponses

gravax
 
Click the Start button. Type the command cmd.
Right-click on the cmd.exe command and select Run as administrator.
Then enter the command takeown /F folderpath /R, replacing folderpath with the full path of the folder you want to take ownership of, for example takeown /F C:\MSOCache /R. Press Enter to validate.
You will then take ownership of the folder and all its contents (files and subfolders).

http://www.pcastuces.com/pratique/astuces/2936.htm
9
ginifly Posted messages 1 Status Membre
 
Wow!
How do you know all this?
0
Aya97 Posted messages 1 Status Membre
 
Thank you !!!!!!!!!!!!!!!!!!!!!
0