what was the Windows verison of chown & chmod?

I just moved some screenshots from the admin's "my pictures" to the all users (shared) folder using the command line. However, they are still set to be only readable by the admin. I don't recall which files are which now (though I have a good guess).
What would be the windows equivalent of the Linux command
CHMOD 777 *.*
aka
chmod a+rwx *.*

Yes, I could go through each file one at a time, but I got an error trying to select all files in the directory so I could assign this permission en mass. I want to assign full control to either "everyone", "users", or "authenticated users" (don't really care which, since they're mostly screenshots that I've uploaded to flicker to post on public boards like this).

I could have sworn there was something like this, but it might have been only for Server 2008R2. I can't remember when I heard of it. The files are on a hardened laptop running Windows XP Professional SP3.

If it is only for Server, or Vista/7/2008, would you mind posting anyways so I can use it with my desktop in the future?
Answer
Answer
The equivalent command in Windows XP is "Cacls".  The equivalent command you describe might be accomplished by:

cacls  *.*  /t  /e  /g  everyone:f 

where the "/t" will recurse into subdirectories.

See also:   "CACLS":  < http://technet.microsoft.com/en-us/library/bb490872.aspx >

The following article was written for Windows 2000 but seems to apply equally to Windows XP:
" How to use Xcacls.exe to modify NTFS permissions "
  < http://support.microsoft.com/kb/318754 >

HTH,
  JW

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated January 29, 2024 Views 3,399 Applies to: