Re: CACLS Problem
- From: "Charlie" <baboon@xxxxxxxxxxxxxx>
- Date: Wed, 12 Oct 2005 21:07:01 -0700
Yes, that works.
I for the life of me don't understand the switch, but I'll take it.
Thanks much.
"Pegasus (MVP)" wrote:
> 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.
> > >
> > >
> > >
>
>
>
.
- Follow-Ups:
- Re: CACLS Problem
- From: Pegasus \(MVP\)
- Re: CACLS Problem
- References:
- Re: CACLS Problem
- From: Pegasus \(MVP\)
- Re: CACLS Problem
- From: Pegasus \(MVP\)
- Re: CACLS Problem
- Prev by Date: Re: WMI counters
- Next by Date: Re: Roaming Profiles Fail to Copy
- Previous by thread: Re: CACLS Problem
- Next by thread: Re: CACLS Problem
- Index(es):
Relevant Pages
|