Marcelo López
03-25-2004, 07:21 PM
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
Paul R. Sadowski
03-25-2004, 08:09 PM
"Marcelo López" <marcelol@infocorp.com.uy> wrote in message
news:%23SUW52pEEHA.580@TK2MSFTNGP11.phx.gbl...
> 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
Paul R. Sadowski
03-25-2004, 08:09 PM
"Marcelo López" <marcelol@infocorp.com.uy> wrote in message
news:%23SUW52pEEHA.580@TK2MSFTNGP11.phx.gbl...
> 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
Marcelo López
03-29-2004, 01:22 PM
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
"Paul R. Sadowski" <xpert@mailshell13.mailshell.com> wrote in message
news:eA#hKUqEEHA.2308@tk2msftngp13.phx.gbl...
>
> "Marcelo López" <marcelol@infocorp.com.uy> wrote in message
> news:%23SUW52pEEHA.580@TK2MSFTNGP11.phx.gbl...
> > 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
>
>
Marcelo López
03-29-2004, 01:22 PM
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
"Paul R. Sadowski" <xpert@mailshell13.mailshell.com> wrote in message
news:eA#hKUqEEHA.2308@tk2msftngp13.phx.gbl...
>
> "Marcelo López" <marcelol@infocorp.com.uy> wrote in message
> news:%23SUW52pEEHA.580@TK2MSFTNGP11.phx.gbl...
> > 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
>
>