Files and directories user permissions on Windows XP

  • HOME
  • >
  • WINDOWS
  • >
  • Files and directories user permissions on Windows XP
Last Updated: 

👉 This post was initially written in 2007 and refered to specific software versions. When tunning your system, always consider which version you are running. Information below may be outdated. Use it at your own risk.

You may have some troubles while using a network share on windows because of access restriction errors. Don't panic, just use CACLS on windows XP.

Displays or modifies discretionary access control list (DACL) files.

cacls FileName [/t] [/e] [/c] [/g User**:permission] [/r** User [...]] [/p User**:permission [...]] [/d** User [...]] **FileName : **Required. Displays DACLs of specified files.
**/t : **Changes DACLs of specified files in the current directory and all subdirectories.
**/e : **Edits a DACL instead of replacing it.
**/c : **Continues to change DACLs, ignoring errors.
/g User : permission : Grants access rights to the specified user. The following table lists valid values for permission.
**/r User : **Revokes access rights for the specified user.
**/p User : permission : **Replaces access rights for the specified user. The following table lists valid values for permission.
**/d User : **Denies access for the specified user.
**/? : **Displays help at the command prompt.

Permission possible values :

n : None

r : Read

w : Write

c : Change (write)

f : Full control

CACLS accept more than one user and you can use widlcards (? and *) to specify multiple files.

Related windows posts that you may like
Running Bash script with Ubuntu on Windows 10 using WSL
No-hassle! Learn how to run Bash on Windows by installing your favorite Linux distribution natively on Windows 10 using Windows Subsystem for Linux, aka WSL.
Determine which Windows OS version is running
How to workaround the lack of command line to sleep or wait some period of time on windows XP. This tips shows, first a batch example using the ping command, second using the Windows Server 2003 Ressource Kit tools with the SLEEP command.
CLI workaround for Windows XP : Doing a pause in a batch script
How to workaround the lack of command line to sleep or wait some period of time on windows XP. This tips shows, first a batch example using the ping command, second using the Windows Server 2003 Ressource Kit tools with the SLEEP command.