Jump to content

Access is denied error


Recommended Posts

Guest sawyer4444
Posted

Hello,

 

This is question probably has a simple answer, but I can't figure it out.

 

For backup purposes I copy all of a partion to a partition on a different

hard drive. I use following xcopy command

 

"xcopy E:\*.* I:\*.* /EXCLUDE:C:\Copy_From_CDEF_to_GHIJ\ExcludeE.txt

/s/e/c/h/r/k/y/d/g/o"

 

I've been doing this for years with no problems.

 

Both the source and target partions are NTFS partitions. I run the batch

files as a user with full administrator permissions.

 

My target partition was getting short on space, so I compressed it.

 

Now when I run the batch file, I get "Access Is Denied" error messages.

I've tried giving all the directories full access rights, etc., with no

change. I can't even delete the directories - some of them give me the

"access is denied" error whether I'm trying to delete from a command prompt

or from inside windows explorer.

 

Help please.

 

 

Thanks,

 

Tom

  • Replies 5
  • Created
  • Last Reply
Guest TaurArian
Posted

Re: Access is denied error

 

1. This is the Windows Update newsgroup.

2. You did not state what operating system you are using.

3. Perhaps post to the Vista Newsgroups

http://windowshelp.microsoft.com/communities/newsgroups/en-us/default.mspx

of

4. Perhaps post to the Windows XP Newsgroups

http://www.microsoft.com/windowsxp/expertzone/newsgroups.mspx

5. Find a better way to back up

Acronis for all your backup and data recovery needs - easy to use

http://www.acronis.com.sg/

or

Paragon - for a list of products see:

http://www.paragon-software.com/products.htm

--

 

TaurArian [MVP] 2005-2008 - Update Services

http://taurarian.mvps.org

======================================

How to ask a question: http://support.microsoft.com/kb/555375

Computer Maintenance: Diskeeper / Raxco

 

 

"sawyer4444" <sawyer4444@discussions.microsoft.com> wrote in message

news:8B15C57E-2D01-4A3E-B06B-E3C5E01988C9@microsoft.com...

| Hello,

|

| This is question probably has a simple answer, but I can't figure it out.

|

| For backup purposes I copy all of a partion to a partition on a different

| hard drive. I use following xcopy command

|

| "xcopy E:\*.* I:\*.* /EXCLUDE:C:\Copy_From_CDEF_to_GHIJ\ExcludeE.txt

| /s/e/c/h/r/k/y/d/g/o"

|

| I've been doing this for years with no problems.

|

| Both the source and target partions are NTFS partitions. I run the batch

| files as a user with full administrator permissions.

|

| My target partition was getting short on space, so I compressed it.

|

| Now when I run the batch file, I get "Access Is Denied" error messages.

| I've tried giving all the directories full access rights, etc., with no

| change. I can't even delete the directories - some of them give me the

| "access is denied" error whether I'm trying to delete from a command prompt

| or from inside windows explorer.

|

| Help please.

|

|

| Thanks,

|

| Tom

Guest TaurArian
Posted

Re: Access is denied error

 

My apologies for stating it was the Windows Update Newsgroup - I'm in the wrong newsgroup.

Perhaps just read No. 5

--

 

TaurArian [MVP] 2005-2008 - Update Services

http://taurarian.mvps.org

======================================

How to ask a question: http://support.microsoft.com/kb/555375

Computer Maintenance: Acronis / Diskeeper / Paragon / Raxco

 

 

"TaurArian" <taurarianREMOVECAPS@gmail.com> wrote in message

news:OZUGnKiwIHA.2384@TK2MSFTNGP02.phx.gbl...

| 1. This is the Windows Update newsgroup.

| 2. You did not state what operating system you are using.

| 3. Perhaps post to the Vista Newsgroups

| http://windowshelp.microsoft.com/communities/newsgroups/en-us/default.mspx

| of

| 4. Perhaps post to the Windows XP Newsgroups

| http://www.microsoft.com/windowsxp/expertzone/newsgroups.mspx

| 5. Find a better way to back up

| Acronis for all your backup and data recovery needs - easy to use

| http://www.acronis.com.sg/

| or

| Paragon - for a list of products see:

| http://www.paragon-software.com/products.htm

| --

|

| TaurArian [MVP] 2005-2008 - Update Services

| http://taurarian.mvps.org

| ======================================

| How to ask a question: http://support.microsoft.com/kb/555375

| Computer Maintenance: Diskeeper / Raxco

|

|

| "sawyer4444" <sawyer4444@discussions.microsoft.com> wrote in message

| news:8B15C57E-2D01-4A3E-B06B-E3C5E01988C9@microsoft.com...

|| Hello,

||

|| This is question probably has a simple answer, but I can't figure it out.

||

|| For backup purposes I copy all of a partion to a partition on a different

|| hard drive. I use following xcopy command

||

|| "xcopy E:\*.* I:\*.* /EXCLUDE:C:\Copy_From_CDEF_to_GHIJ\ExcludeE.txt

|| /s/e/c/h/r/k/y/d/g/o"

||

|| I've been doing this for years with no problems.

||

|| Both the source and target partions are NTFS partitions. I run the batch

|| files as a user with full administrator permissions.

||

|| My target partition was getting short on space, so I compressed it.

||

|| Now when I run the batch file, I get "Access Is Denied" error messages.

|| I've tried giving all the directories full access rights, etc., with no

|| change. I can't even delete the directories - some of them give me the

|| "access is denied" error whether I'm trying to delete from a command prompt

|| or from inside windows explorer.

||

|| Help please.

||

||

|| Thanks,

||

|| Tom

|

|

Guest Bob I
Posted

Re: Access is denied error

 

And if you remove the compression on the target drive, what happens?

 

sawyer4444 wrote:

> Hello,

>

> This is question probably has a simple answer, but I can't figure it out.

>

> For backup purposes I copy all of a partion to a partition on a different

> hard drive. I use following xcopy command

>

> "xcopy E:\*.* I:\*.* /EXCLUDE:C:\Copy_From_CDEF_to_GHIJ\ExcludeE.txt

> /s/e/c/h/r/k/y/d/g/o"

>

> I've been doing this for years with no problems.

>

> Both the source and target partions are NTFS partitions. I run the batch

> files as a user with full administrator permissions.

>

> My target partition was getting short on space, so I compressed it.

>

> Now when I run the batch file, I get "Access Is Denied" error messages.

> I've tried giving all the directories full access rights, etc., with no

> change. I can't even delete the directories - some of them give me the

> "access is denied" error whether I'm trying to delete from a command prompt

> or from inside windows explorer.

>

> Help please.

>

>

> Thanks,

>

> Tom

Guest sawyer4444
Posted

Re: Access is denied error

 

Bob,

 

Thanks - I removed the compression. I still had the problem. But I have a

little more information and my solution.

 

I used windows explorer and was able to delete all but three sub-directories

under the directory I:\Program Files. (I'm running Windows XP SP3. Drive I

:\ is where I copied a partition, E:\, that contains my test installation of

Vista.) All three directories have a sub directory, ..../en-us that seemed

to be causing the problem.

 

The sub directories ..../en-us were marked with the attribute "read only" -

and I couldn't remove it. Using windows explorer->properties I unchecked the

read only box, clicked on apply, and it appeared to be removed. If I exited

and then re-entered properties, the read-only attribute was set again.

 

I then clicked on the windows explorer -> security tab -> advanced button

and changed the owner to be the administrator account I was logged in as.

(The owner had been set to

"S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464" - don't ask

me why.) I made sure my account had full control of the directories. I also

deleted the "S-1-5..." user from the permision list. I changed the read only

attribute again, exited and re-entered properties, and the read only

attribute was back! I went back and forth like this several times and never

did get windows explorer to remove the read only attribute.

 

I then went to a command prompt and ran the attrib command with the -R

parameter and VOILA, the read only attribute was gone! (I had used the

attrib command yesterday and it wouldn't remove the read only attribute. I

suspect having the "S-1-5..." user as the owner in the permissions list was

causing some of the problem.

 

Anyway, thanks,

 

Tom

 

 

"Bob I" wrote:

> And if you remove the compression on the target drive, what happens?

>

> sawyer4444 wrote:

>

> > Hello,

> >

> > This is question probably has a simple answer, but I can't figure it out.

> >

> > For backup purposes I copy all of a partion to a partition on a different

> > hard drive. I use following xcopy command

> >

> > "xcopy E:\*.* I:\*.* /EXCLUDE:C:\Copy_From_CDEF_to_GHIJ\ExcludeE.txt

> > /s/e/c/h/r/k/y/d/g/o"

> >

> > I've been doing this for years with no problems.

> >

> > Both the source and target partions are NTFS partitions. I run the batch

> > files as a user with full administrator permissions.

> >

> > My target partition was getting short on space, so I compressed it.

> >

> > Now when I run the batch file, I get "Access Is Denied" error messages.

> > I've tried giving all the directories full access rights, etc., with no

> > change. I can't even delete the directories - some of them give me the

> > "access is denied" error whether I'm trying to delete from a command prompt

> > or from inside windows explorer.

> >

> > Help please.

> >

> >

> > Thanks,

> >

> > Tom

>

>

Guest Bob I
Posted

Re: Access is denied error

 

glad to hear you uncovered the cause, as you discovered, you may only

SET/UNSET readonly on folders through the command line. The GUI "folder

properties" "read-only" box is not used for that purpose nor does it

actually indicate anything about the properties of of the folder. It's

only purpose in life is to allow a user to SET/UNSET "read-only" on the

files contained in the folder.

 

sawyer4444 wrote:

> Bob,

>

> Thanks - I removed the compression. I still had the problem. But I have a

> little more information and my solution.

>

> I used windows explorer and was able to delete all but three sub-directories

> under the directory I:\Program Files. (I'm running Windows XP SP3. Drive I

> :\ is where I copied a partition, E:\, that contains my test installation of

> Vista.) All three directories have a sub directory, ..../en-us that seemed

> to be causing the problem.

>

> The sub directories ..../en-us were marked with the attribute "read only" -

> and I couldn't remove it. Using windows explorer->properties I unchecked the

> read only box, clicked on apply, and it appeared to be removed. If I exited

> and then re-entered properties, the read-only attribute was set again.

>

> I then clicked on the windows explorer -> security tab -> advanced button

> and changed the owner to be the administrator account I was logged in as.

> (The owner had been set to

> "S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464" - don't ask

> me why.) I made sure my account had full control of the directories. I also

> deleted the "S-1-5..." user from the permision list. I changed the read only

> attribute again, exited and re-entered properties, and the read only

> attribute was back! I went back and forth like this several times and never

> did get windows explorer to remove the read only attribute.

>

> I then went to a command prompt and ran the attrib command with the -R

> parameter and VOILA, the read only attribute was gone! (I had used the

> attrib command yesterday and it wouldn't remove the read only attribute. I

> suspect having the "S-1-5..." user as the owner in the permissions list was

> causing some of the problem.

>

> Anyway, thanks,

>

> Tom

>

>

> "Bob I" wrote:

>

>

>>And if you remove the compression on the target drive, what happens?

>>

>>sawyer4444 wrote:

>>

>>

>>>Hello,

>>>

>>>This is question probably has a simple answer, but I can't figure it out.

>>>

>>>For backup purposes I copy all of a partion to a partition on a different

>>>hard drive. I use following xcopy command

>>>

>>>"xcopy E:\*.* I:\*.* /EXCLUDE:C:\Copy_From_CDEF_to_GHIJ\ExcludeE.txt

>>>/s/e/c/h/r/k/y/d/g/o"

>>>

>>>I've been doing this for years with no problems.

>>>

>>>Both the source and target partions are NTFS partitions. I run the batch

>>>files as a user with full administrator permissions.

>>>

>>>My target partition was getting short on space, so I compressed it.

>>>

>>>Now when I run the batch file, I get "Access Is Denied" error messages.

>>>I've tried giving all the directories full access rights, etc., with no

>>>change. I can't even delete the directories - some of them give me the

>>>"access is denied" error whether I'm trying to delete from a command prompt

>>>or from inside windows explorer.

>>>

>>>Help please.

>>>

>>>

>>>Thanks,

>>>

>>>Tom

>>

>>


×
×
  • Create New...