Cannot delete directory

Cannot delete directory

am 07.11.2005 14:54:22 von magne

WS 2003 (with domain controller set up), VS 2005
Made a WebService for testing something, want to delete it, but cannot.
Logged in as Adminstrator and tried to delete the dir from IIS Manager,
message "Cannot delete theWebDir: Access is denied etc."
I thought Admin could delete everything.
Am I doing it wrong ?

Re: Cannot delete directory

am 07.11.2005 15:24:36 von avidfan

"magne" wrote in message
news:O1m49K64FHA.1140@tk2msftngp13.phx.gbl...
> WS 2003 (with domain controller set up), VS 2005
> Made a WebService for testing something, want to delete it, but cannot.
> Logged in as Adminstrator and tried to delete the dir from IIS Manager,
> message "Cannot delete theWebDir: Access is denied etc."
> I thought Admin could delete everything.
> Am I doing it wrong ?

you are assuming the admin can do anything! admin's can not just do
anything they want any time. if the file is owned by a different account
that account can restrict the admin from doing anything to it.... except
from taking ownership of it. so if you are really, really, really sure that
you can delete that folder without messing something up try taking ownership
of it and then deleting it.

Re: Cannot delete directory

am 07.11.2005 16:12:42 von magne

Of course you are right, but in my case the owner was Administrator (or
actually Administratos) but could not delete anyway.
However I just found out that I can delete the dir if I manuallt delete
subdirs etc. first.

"Dave" wrote in message
news:Ocub9b64FHA.3588@TK2MSFTNGP15.phx.gbl...
>
> "magne" wrote in message
> news:O1m49K64FHA.1140@tk2msftngp13.phx.gbl...
>> WS 2003 (with domain controller set up), VS 2005
>> Made a WebService for testing something, want to delete it, but cannot.
>> Logged in as Adminstrator and tried to delete the dir from IIS Manager,
>> message "Cannot delete theWebDir: Access is denied etc."
>> I thought Admin could delete everything.
>> Am I doing it wrong ?
>
> you are assuming the admin can do anything! admin's can not just do
> anything they want any time. if the file is owned by a different account
> that account can restrict the admin from doing anything to it.... except
> from taking ownership of it. so if you are really, really, really sure
> that you can delete that folder without messing something up try taking
> ownership of it and then deleting it.
>
>
>