PDA

View Full Version : Copying file error



octshik
04-23-2008, 10:12 AM
One of my friend Pc had two users named abc, xyz both have administrator rights in windows xp with sp2, due to virus problem the operating system got corrupted so he gave his hard disk to copy the data of the user xyz, so while copying the folder of the user xyz from Documents and Settings, i got the the error like 'Error copying file or folder' cannot create or replace xyz: Access is denied, make sure the disk is not full or write -protected & that the file is not currently in use. so i taught to open the user xyz folder then also the same error it showed, so i right clicked on the user xyz folder and went to properties it showed 0 bytes. there are very important data's on the user xyz mydocuments & desktop, so how recover those data's back. plz help me.

The_Hunter
04-23-2008, 11:55 AM
cant do a systems restore to earlier date then the virus

Chewie
04-23-2008, 04:06 PM
Sounds like you need to take ownership of the folders - and all the folders & files within.

If you are on Vista then there is a patch to add an automatic process to the context menu but in XP it's all manual and fairly complicated.

octshik
04-24-2008, 06:39 AM
so now you think i can't get that data's back, so can't we take ownership of the folders in windows xp

lynx
04-24-2008, 12:39 PM
You need administrative rights to recover the data. Here's how to do it:

Open explorer and find the folder you need to access.
Right click and select "Sharing and Security".
Select the "Security" tab.
Click the "Advanced" button.
Select the "Owner" tab.
Select the new owner and check the box marked "Replace owner on subcontainers and objects".
Click OK.

The new owner should now be able to access the files, assuming they actually exist.

Remember, if you move the disk to another system you will probably have to repeat the above exercise.

octshik
04-24-2008, 02:37 PM
thanks for your suggestion, but that user folder has zero bytes, do u think the data will be there inside it

Chewie
04-24-2008, 06:44 PM
Why not try the suggestion and have a look?

KiNdZiUs
04-26-2008, 10:16 AM
You need administrative rights to recover the data. Here's how to do it:

Open explorer and find the folder you need to access.
Right click and select "Sharing and Security".
Select the "Security" tab.
Click the "Advanced" button.
Select the "Owner" tab.
Select the new owner and check the box marked "Replace owner on subcontainers and objects".
Click OK.

The new owner should now be able to access the files, assuming they actually exist.

Remember, if you move the disk to another system you will probably have to repeat the above exercise.

yea, this's the solution. Just try it. It's ok that it shows 0kb size because you don't have premissions to access it.

octshik
04-27-2008, 02:44 PM
ok thank you very much

sunil
04-28-2008, 08:28 AM
even i had same problem so i tried the option but i dint get that security tab..?

octshik
04-28-2008, 08:35 AM
i tried but i have a problem in finding "Security" tab I Opened explorer and went to the folder i need to access & Right clicked on it and select "Sharing and security". but there i can't find security tab....

KiNdZiUs
04-28-2008, 07:41 PM
i tried but i have a problem in finding "Security" tab I Opened explorer and went to the folder i need to access & Right clicked on it and select "Sharing and security". but there i can't find security tab....

what OS do you have ? Windows XP Pro or Windows XP Home ? Because Windows XP Home doesn't have this feature :-(
One more thing, if it's Windows XP Pro then try through FOLDER OPTION go to VIEW and then uncheck SIMPLE FILE SHARING. After that you will see it for sure.
Good luck.

Chewie
04-28-2008, 10:56 PM
If you're using XP Home then you'll need to boot into Safe Mode to perform some function or other to allow you to take ownership... to disable Simple File Sharing, I think but don't hold me to that...

Ah fuckit, here's the very first result from Google for "take ownership xp home":

http://support.microsoft.com/kb/308421


How to take ownership of a folder

Note You must be logged on to the computer with an account that has administrative credentials. If you are running Microsoft Windows XP Home Edition, you must start the computer in safe mode, and then log on with an account that has Administrative rights to have access to the Security tab.

If you are using Windows XP Professional, you must disable Simple File Sharing. By default, Windows XP Professional uses Simple File sharing when it is not joined to a domain.

For additional information about how to do this, click the following article number to view the article in the Microsoft Knowledge Base: 307874 (http://support.microsoft.com/kb/307874/) (http://support.microsoft.com/kb/307874/) How to disable simplified sharing and set permissions on a shared folder in Windows XP
To take ownership of a folder, follow these steps: 1.Right-click the folder that you want to take ownership of, and then click Properties.2.Click the Security tab, and then click OK on the Security message (if one appears).3.Click Advanced, and then click the Owner tab.4.In the Name list, click your user name, or click Administrator if you are logged in as Administrator, or click the Administrators group. If you want to take ownership of the contents of that folder, select the Replace owner on subcontainers and objects check box.5.Click OK, and then click Yes when you receive the following message: You do not have permission to read the contents of directory folder name. Do you want to replace the directory permissions with permissions granting you Full Control?

All permissions will be replaced if you press Yes.
Note folder name is the name of the folder that you want to take ownership of.6.Click OK, and then reapply the permissions and security settings that you want for the folder and its contents.http://support.microsoft.com/library/images/support/kbgraphics/public/en-us/uparrow.gifBack to the top (http://support.microsoft.com/kb/308421#top)
How to take ownership of a file

Note You must be logged on to the computer with an account that has administrative credentials.

To take ownership of a file, follow these steps: 1.Right-click the file that you want to take ownership of, and then click Properties.2.Click the Security tab, and then click OK on the Security message (if one appears).3.Click Advanced, and then click the Owner tab.4.In the Name list, click Administrator, or click the Administrators group, and then click OK.

The administrator or the Administrators group now owns the file. To change the permissions on the files and folders under this folder, go to step 5.5.Click Add.6.In the Enter the object names to select (examples) list, type the user or group account that you want to give access to the file. For example, type Administrator.7.Click OK.8.In the Group or user names list, click the account that you want, and then select the check boxes of the permissions that you want to assign that user.9. When you are finished assigning permissions, click OK.
Jesus, you have to do everything for some people.