Question

Locked

Server 2003 File Ownership Oops

By WorkForFood ·
Hi all-
I replaced an inexperienced admin who took ownership of hundreds of user directories as administrator. This has understandably whacked the disk quota system. Does anyone have any idea of a way to restore ownership to each user without using the GUI and replacing every owner one at a time?

This conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

script

by lowlands In reply to Server 2003 File Ownershi ...

If you have this issue on a folder structure that contains users home folders that have a name descriptive of the userid it can be scripted. If this happened on folder shared by many, the hard part would be to determine who actually owns any given file.

To set the owner, look up a utility called <b>setacl.exe</b>. Create a script to enumerate all home folders, read the name, and set owner to that name with setacl.

Back to Networks Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums