what is the command to take ownership?

  • Thread starter Thread starter GS
  • Start date Start date
GS said:
from dos prompt, what is the command to take/change ownership of a
file/folder?

I do not believe Windows XP has any built-in commands to do this. CACLS or
XCACLS or SetACL or the CHOWN command line (^nix exported functionality) can
do it from the command line.

Otherwise...

How to Take Ownership of a File or Folder in Windows XP
http://support.microsoft.com/kb/308421

Read *carefully* - do not just skim the page and start following steps.
There is important information there dependent on the version of Windows XP
 
Thank you

Unfortunately I already tried the gui method in windows explorer without
luck.. I tried form the parent folder also without luck for replacing
permission, owners of files and subfolders,

the file in question is read only on a standalone XP Pro sp2 pc. I guess I
have to install the optional admin package for xcacls or setacl, right?

the file does not show security tab in property for administrators, nor
other uses

I managed to rename the parent folder and copy the rest to anew folder of
the same original name.
 
Check out the following MS KB article to enable the "security" tab:
http://support.microsoft.com/kb/290403/en-us
Edit registry at your own risk....
You should then be able to take ownership through Security/Advanced/Owner,
if logged in with appropriate permissions.

GS said:
Thank you

Unfortunately I already tried the gui method in windows explorer without
luck.. I tried form the parent folder also without luck for replacing
permission, owners of files and subfolders,

the file in question is read only on a standalone XP Pro sp2 pc. I guess I
have to install the optional admin package for xcacls or setacl, right?

the file does not show security tab in property for administrators, nor
other uses

I managed to rename the parent folder and copy the rest to anew folder of
the same original name.
 
Back
Top