Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Changing Ownership of Files and Folders

Posted on 2004-03-29
8
Medium Priority
?
750 Views
Last Modified: 2007-12-19
Hi,

We currently have 2 domains at the College. One domain servicing the teachers and staff (A) and the other domain a child domain is servicing the students (B). We have a script that is run twice a day to using xcopy syntax to copy data from the students folder to another server on Domain (A). This is an extra backup that we use just in case of emergency retrieval of data , instead of loading the tape and restoring.

The problem that I am experiencing is that I am unable to change the ownership of the files and folders for the student data to administrator of domain (A). I recieve an error " unable to set new owner on username. There is not enough space on the disk."

This is quite confusing as there is over 300GB of free space and without changing the ownership to administrator on the folders, I am unable to use the script and replicate data to the other server. If I change the ownership to the administrator of domain (B) there is no error message the ACL is updated accordingly.

Any ideas?

Thanks

Moey_G
0
Comment
Question by:Moey_G
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 20

Expert Comment

by:What90
ID: 10709596
Hi Moey_G,


Is there a trust between the two domains and if there is does the user account have the correct permissions in both domains to make the file transfers?

0
 

Author Comment

by:Moey_G
ID: 10709617
Hi What90,

There is a two-way transitive trust between the two domains and I even used the verify button with administrator account on both DC's  using AD Domains and Trusts.
0
 
LVL 20

Expert Comment

by:What90
ID: 10709625
Moey_G,

Have you tried to manually move the data accross on one folder. This would test if it's a permissions thing, rather than your batch file isn't working correctly.

Use the account the batch file uses as well.

Post back the results
0
Fill in the form and get your FREE NFR key NOW!

Veeam® is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

 

Author Comment

by:Moey_G
ID: 10709714
What90,

I have no problems manually moving the data across to the other server. Its when I am using the batch , it needs the ownership of the files and folders to be administrator of Domain A.
0
 
LVL 20

Expert Comment

by:What90
ID: 10709725
Moey_G,


Try using Robocopy, which you can download from the Ms web site (it's in the resource kit for 2003)

Its much better than Xcopy and should fix the problem as it understands owners and has a bucket load of switches.
0
 

Author Comment

by:Moey_G
ID: 10709950
What90,

I am still having the same issue with robocopy.exe. It will not replicate the folders unless the ownership of the files and folders are administrator. Any other suggestions?
0
 
LVL 20

Accepted Solution

by:
What90 earned 2000 total points
ID: 10709990
Moey_G,

From the guide on robocopy Version XP010:

Copying NTFS Security Information
If both the source and destination directories reside on NTFS volumes, you can use Robocopy to copy NTFS security information. The most common requirement is to preserve NTFS ACLs during a copy. To do this, use the /SEC switch to copy NTFS file permissions when you copy files to a destination for the first time. If you also need to preserve NTFS ownership and auditing information you should use /COPYALL.

Can the account from either domain access resources on the othe domain?
If not, then the ownership wouldn't work because the other domain can't recongnise the user's account details.
You need to allow the users to save info on the other domain.
0
 

Author Comment

by:Moey_G
ID: 10710378
What90,

Thanks for all your help. The replication works fine even without the administrator having the ownership of the files and folders.

Cheers,

Moey_G
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

by Batuhan Cetin Within the dynamic life of an IT administrator, we hold many information in our minds like user names, passwords, IDs, phone numbers, incomes, service tags, bills and the order from our wives to buy milk when coming back to home.…
This may not be a text book method to resolve VSS backup issues but it seemed to have worked on few of the Windows 2003 servers we had issues while performing a Volume Shadow Copy backup. If you have issues while performing a shadow copy backup usin…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question