Files and directories user permissions on Windows XP

DOS - Windows Batch Files, Tips Add comments

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.

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
blog comments powered by Disqus
WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in