Discussion Locked

how to get ownership of a folder?

0 helpful
8 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I setup a Home directory on my File-server for users to backup their personal files.Every users has his home dir and he is the only one who has full control of this folder.(domain admin also has no access)
Now,I found virus in some users' folder and can't clean them because of permission deny.
The OS is win2000,NTFS,how can I give me full control access to these folders in a simple and still keep the old permission on them.
Thanks for your kindly help.

8 replies

by beermonster

Hi,
You need to use XCACLS (comes with the OS so just type xcacls /? for syntax. You will need to take ownership first, then add your account with full permissions using the /E switch (edits the security list rather than replaces it, thus leavesyour users permissions intact). You can put this in a cmd file, using a dir listing of the directories as input. Note that you will (obviously) need to be using an admin account to take ownership. Have fun : )

by beermonster

The respondents below are absolutely correct, its cacls.exe which comes with the OS, xcacls is a reskit add on which provides some extra bells and whistles.... : )

by highorbit

Just a note on the above... I didn't think xcacls came with the OS... could be wrong.

If you can't find it it's part of both the NT and 2000 resource kits.

This discussion is closed to new replies.