Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Why can't VISTA delete read-only files?

Reply
Thread Tools Display Modes

Why can't VISTA delete read-only files?

 
 
Matthew
Guest
Posts: n/a

 
      10-19-2007
Why is it that Vista cannot delete read-only files? I have some files on the
network that are marked read-only. When I try to delete them Vista says:

Destination Folder Access Denied
You need permission to perform this action
Try Again | Cancel

I thought it was permission related, but I have full permissions to the file
and I get this even if I run elevated. I then noticed the file was marked as
read/only. If I clear the read-only attribute I can then delete the file
without issue.

What's going on here?

On XP it would ask you "are you sure you want to delete read-only file...
?". Clicking yes would allow me to proceed with deletion.

What is going on with Vista and how can I get around it?

I have a network directory with thousands of sub directories that I need to
delete and trying to remove read-only attributes from them is going to be a
pain. There has to be a better way.

Thanks in advance,
Matthew
 
Reply With Quote
 
 
 
 
Andre Da Costa[ActiveWin]
Guest
Posts: n/a

 
      10-19-2007
Try taking ownership of the folder then delete contents:
How to take ownership of a file or folder:
http://support.microsoft.com/kb/308421
--
Andre
Blog: http://adacosta.spaces.live.com
My Vista Quickstart Guide:
http://adacosta.spaces.live.com/blog...3DB!9709.entry
"Matthew" <> wrote in message
news:55085A44-2413-46D8-B32D-...
> Why is it that Vista cannot delete read-only files? I have some files on
> the
> network that are marked read-only. When I try to delete them Vista says:
>
> Destination Folder Access Denied
> You need permission to perform this action
> Try Again | Cancel
>
> I thought it was permission related, but I have full permissions to the
> file
> and I get this even if I run elevated. I then noticed the file was marked
> as
> read/only. If I clear the read-only attribute I can then delete the file
> without issue.
>
> What's going on here?
>
> On XP it would ask you "are you sure you want to delete read-only file...
> ?". Clicking yes would allow me to proceed with deletion.
>
> What is going on with Vista and how can I get around it?
>
> I have a network directory with thousands of sub directories that I need
> to
> delete and trying to remove read-only attributes from them is going to be
> a
> pain. There has to be a better way.
>
> Thanks in advance,
> Matthew



 
Reply With Quote
 
dennis@home
Guest
Posts: n/a

 
      10-19-2007

"Matthew" <> wrote in message
news:55085A44-2413-46D8-B32D-...
> Why is it that Vista cannot delete read-only files? I have some files on
> the
> network that are marked read-only. When I try to delete them Vista says:
>
> Destination Folder Access Denied
> You need permission to perform this action
> Try Again | Cancel
>
> I thought it was permission related, but I have full permissions to the
> file
> and I get this even if I run elevated. I then noticed the file was marked
> as
> read/only. If I clear the read-only attribute I can then delete the file
> without issue.
>
> What's going on here?


Its working as it should.

> On XP it would ask you "are you sure you want to delete read-only file...
> ?". Clicking yes would allow me to proceed with deletion.


XP is short cutting by changing it from read only quietly before deleting
it.

> What is going on with Vista and how can I get around it?


Its working OK AFAICS, just different to XP.

> I have a network directory with thousands of sub directories that I need
> to
> delete and trying to remove read-only attributes from them is going to be
> a
> pain. There has to be a better way.


Well if you right click on the directory and select properties and then
uncheck the read only box it asks if you want to apply it to just that
folder or all folder and files below that. Just say all. It may take a while
depending on what your server is. On mine I just loaded a new kernel on the
server and used ssh to log in and used rm -rf to get rid of a big folder.
Someone else suggested taking ownership but I don't see that being necessary
unless there is some side effect that makes it easier, I haven't tried that
myself.

 
Reply With Quote
 
Matthew
Guest
Posts: n/a

 
      10-22-2007
Taking ownership has no effect.

I don't see how XP is "doing things quietly" when it flat out prompts me
"are you sure you want to delete read-only file: blah blah"?

This can not be normal behavior. Vista throws an error citing access is
denied, simply because the file is read-only. Read-only does not equate to
"no access", so that error should not display.

Furthermore, Vista is supposed to be more advanced than XP. Why can XP see
the file is read-only and offer a solution, whereas Vista just flat out
doesn't know what to do?

Something is not right. I'd be more willing to think this is a bug, not by
design.

"dennis@home" wrote:

>
> "Matthew" <> wrote in message
> news:55085A44-2413-46D8-B32D-...
> > Why is it that Vista cannot delete read-only files? I have some files on
> > the
> > network that are marked read-only. When I try to delete them Vista says:
> >
> > Destination Folder Access Denied
> > You need permission to perform this action
> > Try Again | Cancel
> >
> > I thought it was permission related, but I have full permissions to the
> > file
> > and I get this even if I run elevated. I then noticed the file was marked
> > as
> > read/only. If I clear the read-only attribute I can then delete the file
> > without issue.
> >
> > What's going on here?

>
> Its working as it should.
>
> > On XP it would ask you "are you sure you want to delete read-only file...
> > ?". Clicking yes would allow me to proceed with deletion.

>
> XP is short cutting by changing it from read only quietly before deleting
> it.
>
> > What is going on with Vista and how can I get around it?

>
> Its working OK AFAICS, just different to XP.
>
> > I have a network directory with thousands of sub directories that I need
> > to
> > delete and trying to remove read-only attributes from them is going to be
> > a
> > pain. There has to be a better way.

>
> Well if you right click on the directory and select properties and then
> uncheck the read only box it asks if you want to apply it to just that
> folder or all folder and files below that. Just say all. It may take a while
> depending on what your server is. On mine I just loaded a new kernel on the
> server and used ssh to log in and used rm -rf to get rid of a big folder.
> Someone else suggested taking ownership but I don't see that being necessary
> unless there is some side effect that makes it easier, I haven't tried that
> myself.
>
>

 
Reply With Quote
 
Richard Urban
Guest
Posts: n/a

 
      10-22-2007
No access, and improper network access credentials are not the same.

When I first set up a computer to be used strictly for backup purposes I ran
into the same thing. After properly configuring the two computer, and
applying the necessary access privileges, I had no problems.

--

Regards,

Richard Urban
Microsoft MVP Windows Shell/User
(For email, remove the obvious from my address)



"Matthew" <> wrote in message
news:115C299A-98FD-4FC5-AB2B-...
> Taking ownership has no effect.
>
> I don't see how XP is "doing things quietly" when it flat out prompts me
> "are you sure you want to delete read-only file: blah blah"?
>
> This can not be normal behavior. Vista throws an error citing access is
> denied, simply because the file is read-only. Read-only does not equate
> to
> "no access", so that error should not display.
>
> Furthermore, Vista is supposed to be more advanced than XP. Why can XP
> see
> the file is read-only and offer a solution, whereas Vista just flat out
> doesn't know what to do?
>
> Something is not right. I'd be more willing to think this is a bug, not
> by
> design.
>
> "dennis@home" wrote:
>
>>
>> "Matthew" <> wrote in message
>> news:55085A44-2413-46D8-B32D-...
>> > Why is it that Vista cannot delete read-only files? I have some files
>> > on
>> > the
>> > network that are marked read-only. When I try to delete them Vista
>> > says:
>> >
>> > Destination Folder Access Denied
>> > You need permission to perform this action
>> > Try Again | Cancel
>> >
>> > I thought it was permission related, but I have full permissions to the
>> > file
>> > and I get this even if I run elevated. I then noticed the file was
>> > marked
>> > as
>> > read/only. If I clear the read-only attribute I can then delete the
>> > file
>> > without issue.
>> >
>> > What's going on here?

>>
>> Its working as it should.
>>
>> > On XP it would ask you "are you sure you want to delete read-only
>> > file...
>> > ?". Clicking yes would allow me to proceed with deletion.

>>
>> XP is short cutting by changing it from read only quietly before deleting
>> it.
>>
>> > What is going on with Vista and how can I get around it?

>>
>> Its working OK AFAICS, just different to XP.
>>
>> > I have a network directory with thousands of sub directories that I
>> > need
>> > to
>> > delete and trying to remove read-only attributes from them is going to
>> > be
>> > a
>> > pain. There has to be a better way.

>>
>> Well if you right click on the directory and select properties and then
>> uncheck the read only box it asks if you want to apply it to just that
>> folder or all folder and files below that. Just say all. It may take a
>> while
>> depending on what your server is. On mine I just loaded a new kernel on
>> the
>> server and used ssh to log in and used rm -rf to get rid of a big folder.
>> Someone else suggested taking ownership but I don't see that being
>> necessary
>> unless there is some side effect that makes it easier, I haven't tried
>> that
>> myself.
>>
>>


 
Reply With Quote
 
Dave
Guest
Posts: n/a

 
      10-22-2007
You need to take ownership, and change the permissions on the file or
folder.

http://blogs.msdn.com/tims/archive/2...deletable.aspx



"Matthew" <> wrote in message
news:115C299A-98FD-4FC5-AB2B-...
> Taking ownership has no effect.
>
> I don't see how XP is "doing things quietly" when it flat out prompts me
> "are you sure you want to delete read-only file: blah blah"?
>
> This can not be normal behavior. Vista throws an error citing access is
> denied, simply because the file is read-only. Read-only does not equate
> to
> "no access", so that error should not display.
>
> Furthermore, Vista is supposed to be more advanced than XP. Why can XP
> see
> the file is read-only and offer a solution, whereas Vista just flat out
> doesn't know what to do?
>
> Something is not right. I'd be more willing to think this is a bug, not
> by
> design.
>
> "dennis@home" wrote:
>
>>
>> "Matthew" <> wrote in message
>> news:55085A44-2413-46D8-B32D-...
>> > Why is it that Vista cannot delete read-only files? I have some files
>> > on
>> > the
>> > network that are marked read-only. When I try to delete them Vista
>> > says:
>> >
>> > Destination Folder Access Denied
>> > You need permission to perform this action
>> > Try Again | Cancel
>> >
>> > I thought it was permission related, but I have full permissions to the
>> > file
>> > and I get this even if I run elevated. I then noticed the file was
>> > marked
>> > as
>> > read/only. If I clear the read-only attribute I can then delete the
>> > file
>> > without issue.
>> >
>> > What's going on here?

>>
>> Its working as it should.
>>
>> > On XP it would ask you "are you sure you want to delete read-only
>> > file...
>> > ?". Clicking yes would allow me to proceed with deletion.

>>
>> XP is short cutting by changing it from read only quietly before deleting
>> it.
>>
>> > What is going on with Vista and how can I get around it?

>>
>> Its working OK AFAICS, just different to XP.
>>
>> > I have a network directory with thousands of sub directories that I
>> > need
>> > to
>> > delete and trying to remove read-only attributes from them is going to
>> > be
>> > a
>> > pain. There has to be a better way.

>>
>> Well if you right click on the directory and select properties and then
>> uncheck the read only box it asks if you want to apply it to just that
>> folder or all folder and files below that. Just say all. It may take a
>> while
>> depending on what your server is. On mine I just loaded a new kernel on
>> the
>> server and used ssh to log in and used rm -rf to get rid of a big folder.
>> Someone else suggested taking ownership but I don't see that being
>> necessary
>> unless there is some side effect that makes it easier, I haven't tried
>> that
>> myself.
>>
>>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Word 2003, Read-only Files and Vista Adam Leinss Windows Vista General Discussion 15 12-16-2008 05:59 PM
Vista cannot delete read-only files Matthew Windows Vista General Discussion 12 10-29-2008 05:49 AM
Unable to read or Delete Mail Sweet Baby Alice Windows Vista Mail 5 03-01-2008 11:38 PM
Folders/files read only/can't create new folder in read only folde gshillitani Windows Vista Administration 9 09-25-2007 12:50 PM
Can XP filesystem read Vista files? cozzmo1@hotmail.com Windows Vista Installation 5 08-07-2007 06:06 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59