Re: cacls applied to empty directory

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Marty List (bill.gates_at_sun.com)
Date: 10/16/04


Date: Sat, 16 Oct 2004 08:03:48 -0600


"rob merritt" <merrittr@gmail.com> wrote in message
news:36afd772.0410151520.14a3086f@posting.google.com...
> hi I have a directory on a number of servers I want protected .
> currently the dir is empty so using CACLS I want to set the acls via:
>
> mkdir "\\ABS1s\e$\Shares\Office\Admin Notes\"
> cacls "\\ABS1s\e$\Shares\Office\Admin Notes\" /C /P "@MIS":C <
> yes.txt
> cacls "\\ABS1s\e$\Shares\Office\Admin Notes\" /E /c /P "Domain
> Admins":F < yes.txt
> cacls "\\ABS1s\e$\Shares\Office\Admin Notes\" /E /c /P "@Elementary
> Principals":C < yes.txt
> cacls "\\ABS1s\e$\Shares\Office\Admin Notes\" /E /c /P "@Elementary
> Vice Principals":C < yes.txt
>
> ony I get:
> The system cannot find the file specified.
>
> Admin Notes is the directory I want protected.

Some commands don't like the trailing backslash, cacls is one of them. Try
this:

cacls "\\ABS1s\e$\Shares\Office\Admin Notes" /C /P "@MIS":C <yes.txt

And if you don't want to mess with yes.txt, try this:

Echo y|cacls "\\ABS1s\e$\Shares\Office\Admin Notes" /C /P "@MIS":C



Relevant Pages

  • cacls applied to empty directory
    ... hi I have a directory on a number of servers I want protected. ... currently the dir is empty so using CACLS I want to set the acls via: ... Admin Notes is the directory I want protected. ...
    (microsoft.public.win2000.cmdprompt.admin)
  • Re: Right click on a folder...properties...nothing happens!!
    ... JohnB wrote: ... > Looks like you and I have the same problem, but nobody out ... You may have to use cacls from a command prompt to mend it. ... You can /really/ mess up with cacls. ...
    (microsoft.public.win2000.file_system)
  • Re: Weendoze for a VMS bigot
    ... $ cacls sshd_config /G Administrator:FCWR ... {repeats /? ... I hope that doesn't hork access ... The /E says don't mess about with existing ...
    (comp.os.vms)