Re: CACLS Problem




"Charlie" <Charlie@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:98C01041-9448-473B-B139-508838C19CA3@xxxxxxxxxxxxxxxx
> I see that someone else posted a CACLS problem to this NG today, so what
the
> heck; seems like a good enough place......
>
> According to the listed switches, /T "Changes ACLs of specified files in
> the current directory and all subdirectories."
> Yet if I switch to a particular directory then use the command, only the
> subfolder's and file's permissions are changed. How do I get the current
> directory to change?
>
> Here is the syntax that I'm using (from the desired directory, of course):
> cacls *.* /t /g <username>:<perms>
>
> I've also tried typing the full path to the top directory in the tree, but
> that doesn't work either.
>
> Thanks.

.. . . and you're getting a response from the same person.

Your observation is at variance with mine. I used this command:

cacls *.txt /t /g everyone:F

and found that the permissions for all .txt files were changed,
regardless of whether they were located in the current folder
or any subfolder. I recommend you have another look.

Of course if you wish to change the permissions of the
current folder itself (rather than of the files inside it) then
you must do it from its parent. To change the permissions
for C:\Temp you would do this:

cacls c:\temp /t /e /g everyone:f

I also suggest you use the /e switch. Omitting it might
have undesireable results.


.



Relevant Pages

  • Re: Unable to delete orphaned 1.5 GB System Restore folder
    ... The fact that the tech support is based in India has nothing to do with the ... If so you may want to leave this folder alone. ... down to all children folders because i can set those permissions to ... try deleting from the command line using system by using the AT ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Unable to delete orphaned 1.5 GB System Restore folder
    ... The only computers i fix are my own. ... If so you may want to leave this folder alone. ... it includes all subdirectories with inherited permissions. ... try deleting from the command line using system by using the AT ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Unable to delete orphaned 1.5 GB System Restore folder
    ... You did not give any info on if you checked file permissions or not. ... information folder being a perfect example of one and by default only system ... Using the attrib command does more than you suggested because ... Restore files and how to turn that off for files no longer used by System ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Help with cacls in WinXP Home
    ... Take Ownership of a File or Folder in Windows XP ... all the information I have of CACLS: ... Just because you can set permissions with Cacls doesn't mean you should. ... Try the Cacls command on a test folder first and make sure that your ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Unable to delete orphaned 1.5 GB System Restore folder
    ... all subdirectories with inherited permissions. ... rights to the folder and all subdirectories. ... It's clear that neither of you know how System Restore protects its files. ... Using the attrib command does more than you suggested ...
    (microsoft.public.windowsxp.security_admin)