Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is the best way to give all users of windows XP access to create/write to files in c: drive. I do not want those permissions to be inherited to all other folders on the same drive. This access is a requirement to get a business critical app to function.

share|improve this question
up vote 4 down vote accepted
cacls C:\ /G Everyone:(C)

That will grant everyone the Modify right to the top of C:\ and cause it to inherit. To enable inheritance, use this version:

cacls C:\ /G Everyone:(oi)(ci)(C)

The OI and CI rights are what govern inheritance.

If you're on Windows 7, it's similar. NOTE: the C - Change switch is now M - Modify in icacls.

icacls C:\ /Grant Everyone:(M)

icacls replaced cacls as of WinVista.

share|improve this answer
There is no modify switch on the cacls command ( in win 7 at least ) – Menuta Feb 18 '11 at 3:32
@Menuta Aaah! Win7! Even easier! Will update answer shortly. – sysadmin1138 Feb 18 '11 at 4:36
I need it to work in both Win7 and XP, going to try it in a VM if I can. – Menuta Feb 20 '11 at 0:04

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.