Re: CACLS Problem



Of course you can change the permissions of your current folder:

cacls "%cd%" /e /t /g everyone:F


"Charlie" <baboon@xxxxxxxxxxxxxx> wrote in message
news:870C8B9F-9AC5-4B2F-A4DA-730F634FEF91@xxxxxxxxxxxxxxxx
> The second half of your answer applies.
> I should have made it more clear that the files in the current directory
got
> changed as well as subfolders.
> I wanted to be able to change permissions of the current folder
> specifically, but I guess that can't be done. I can just rewrite the
batch
> file with that in mind.
>
> Thanks.
>
> "Pegasus (MVP)" wrote:
>
> >
> > "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
    ... 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)
  • Re: Where is my user?
    ... Now if I go into Docs and Settings, ... PetCareGroup is the folder that has all my docs, ... Keep in mind that when NTFS permissions and share ... I tried to switch it back to today ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Server Unavailable - ASP.NET 2.0 on Windows XP
    ... So I switched to that directory in Command Prompt and tried the following... ... permissions to the global assembly cache. ... Which user account was returned by it? ... If I switch the Windows XP ...
    (microsoft.public.dotnet.framework.aspnet)