NT User Directory Ownship

Is there a way to change the ownership of an NT user's directory. I need to change the ownership permissions for a large number of users and the NT security tools just don't hit the mark for this.

TIA  Dave
DaveCourtAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

aldynCommented:
You've mentioned about two different things: ownershisp and ownership permissions. The first one is defined by the Owner field of the security descriptor associated with directory. The second one is an item in in the DACL. In common for each directory you will have to do the following actions:
1) read security descriptor
2) modify it
3) write it back

The step (2) is most difficult and requires a lot of API calls and memory reallocations. I have a set of components that essentially simplify this step. They are available on my site at
http://members.tripod.com/~aldyn/svcom_frame.html
The tutorial is located at
http://members.tripod.com/~aldyn/tutorial

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
DaveCourtAuthor Commented:
Many thanks for your speedy help Aldyn

Dave
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.