Taking ownership with xcacls.exe

T

Todd

I'm trying to usc xcacls to take ownership of a
directory. I am logging in with a Domain Admin user
account and then running the following at the command
line. ("Larryp" is the name of the folder I am trying to
take ownership of)

c:\>xcacls c:\Larryp /G (e-mail address removed):O;O /C /E

The response I get is:

processed directory c:\Larryp

Then when I right click the folder and choose properties
to check if I now have ownership, I don't. Any thoughts?

Todd
 
T

Torgeir Bakken (MVP)

Todd said:
I'm trying to usc xcacls to take ownership of a
directory. I am logging in with a Domain Admin user
account and then running the following at the command
line. ("Larryp" is the name of the folder I am trying to
take ownership of)

c:\>xcacls c:\Larryp /G (e-mail address removed):O;O /C /E

The response I get is:

processed directory c:\Larryp

Then when I right click the folder and choose properties
to check if I now have ownership, I don't. Any thoughts?

Hi

As far as I know, xcacls isn't able to take ownership of files/folders.

SUBINACL in the Win2k Resource kit looks like is able to do this:

subinacl /noverbose /file \\server\share\dir /setowner=whoever
subinacl /noverbose /subdirectories \\server\share\dir\* /setowner=whoever


If you don't have the Win2k RK, the subinacl.exe in the Windows Server 2003 RK
(free) will maybe work on Win2k as well.

Windows Server 2003 Resource Kit Tools
http://www.microsoft.com/downloads/...69-57ff-4ae7-96ee-b18c4790cffd&DisplayLang=en

(The kit will install on WinXP or later)
 
D

DJ

You syantax is wrong. Try this

c:\>xcacls c:\Larryp /G (e-mail address removed):O;O /C /E
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top