Actually, I don't think there is a "chown" in the NT reskit (as it is called by the cognoscenti :-), but there is a command called "subinacl.exe" which allows you to do various manipulations of the NT security information on files, including changing ownership.
NT security folks make much of the fact that administrator privilege does not allow you to set ownership, only take it, the idea being that you can't cover your tracks if you operate on a file as administrator that you had been blocked from via an ACL. However, it turns out that you really need to do this from time to time, so there are ways to do it if you need to, as long as you have the 'backup' and 'restore' NT privileges, which Admins have by default.
Mark Muhlestein -- mmm@netapp.com
-----Original Message----- From: tkaczma@gryf.net [mailto:tkaczma@gryf.net] Sent: Friday, June 18, 1999 7:56 PM To: toasters@mathworks.com Subject: Re: CIFS Administrators vs file ownership
On Fri, 18 Jun 1999, Keith Brown wrote:
So.... I'll fire you my "ntchown" tool under separate cover. You'll be my second customer for it. I haven't exactly "tested the living daylights out of it", but I'm pretty confident it works under most scenarios, as it's really very simple.
BTW, I think there is a chown in the NT Server (?) Resource Kit, which in my opinion should have been a part of the NT Server package. If the Exploder is a part of the OS such tools certainly are. However, as I recall there might have been a problem in the fact that the ACLs would be screwed up (owner/creator permissions, etc. would be different then expected) after chowning a file.
Tom
On Fri, 18 Jun 1999, Muhlestein, Mark wrote:
(as it is called by the cognoscenti :-)
Thanks demostrating your superiority and intellectual prowess. For those unfamiliar with Latin or ancient Italian, cognoscenti amounts to "the wise [ones]."
Regards; Tom