Re: Take ownership of files

From: Neil Savage (nsavage@axa.com.au)
Date: 05/27/02


From: nsavage@axa.com.au (Neil Savage)
Date: 26 May 2002 23:34:44 -0700


"Keith Marston" <keith.marston@gmaccc.co.uk> wrote in message news:<u7#wP#AACHA.1168@tkmsftngp02>...
> I need a command i can use in a script to take ownership of a directory so
> as i can then copy down some files and then use cacls.exe on the resource
> kit to set back the permisions.
>
> This will be in actual fact to allow updating of local GPO files as we are
> not running AD :(
>
> Thanks

Keith

There's a utility called OWNADM.EXE that should to the trick. I can
send you the EXE if you like. Or you can download it from:

http://www.loa.espci.fr/winnt/ownadm/ownadm.htm

There's also a utility in the Win2k Resource Kit called TAKEOWN that
can be used, but it only works on individual files and folders...its
not recursive. That might be a better solution since its MS and you
know the names of your policy files.

Neil Savage



Relevant Pages

  • Re: Take ownership of files
    ... >> I need a command i can use in a script to take ownership of a directory ... Recursion can be done with "For /r", ...
    (microsoft.public.win2000.security)
  • Re: How to change /homes file system
    ... Is there a command for accomplishing this? ... script. ... > ownership be retained? ...
    (comp.os.linux.setup)
  • Take ownership of files
    ... I need a command i can use in a script to take ownership of a directory so ... This will be in actual fact to allow updating of local GPO files as we are ...
    (microsoft.public.win2000.security)
  • Commands for changing ownership of a file
    ... ownership of the files created in the script to that of my username. ... the command is something like "chown myusername:users". ...
    (comp.lang.python)
  • Re: [opensuse] Re: /bin/chmod: Argument list too long - how long is too long?
    ... I was trying to use chmod, ... The script I was playing with was one that let me set the directory ... one short command instead of 2 long find commands and a chown. ... permissions or ownership so this was a simple way to fix them. ...
    (SuSE)