Windows – read write permission in root of drive c: in windows XP

permissionsSecuritywindowswindows 7windows-xp

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.

Best Answer

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.