Using CACLS

  • Thread starter Thread starter Marcelo López
  • Start date Start date
M

Marcelo López

Hi all, i'm using impersonation to protect a folder which is being used by
my win app. (i tried using a file watcher but id didn't work).

The problem i have is that when start the app i switch to the special user
and i can read and write files to that folder, but i can't create subfolders
on it !!

to restrict permissions from the folder to my special user i use the command
"cacls" . Does anybody knows how can i specify that my special user has
permissions to create subfloders also ?

Regards

Marcelo López
 
Marcelo López said:
Hi all, i'm using impersonation to protect a folder which is being used by
my win app. (i tried using a file watcher but id didn't work).

The problem i have is that when start the app i switch to the special user
and i can read and write files to that folder, but i can't create
subfolders
on it !!

to restrict permissions from the folder to my special user i use the
command
"cacls" . Does anybody knows how can i specify that my special user has
permissions to create subfloders also ?

Add the 'C' change permission. /G youraccount:C
 
Hello, thanks for the answer but it didn's solve the problem !

i was using CACLS /G user:F

and i change it to :C, but when the app try to create a SUBFOLDER, fails,
and throw an "access denied" exception.

I switch to the user using Impersonation when my app starts.

Any idea ??

Regards,

Marcelo López
 
Back
Top