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.

link|improve this question
feedback

1 Answer

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.

link|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
feedback

Your Answer

 
or
required, but never shown

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