Problem setting a SecurityDescriptor using ADSI

From: John Harvey (harveydad_at_hotmail.com)
Date: 01/24/04


Date: Fri, 23 Jan 2004 19:33:03 -0800

Hello,

I have just run into an interesting problem when setting a Security
Decriptor on an NTFS file. I get the following error:

Run-time error '-2147023589 (8007051b)':

Automation Error
This security ID may not be assigned as the owner of this object.

I am logged in as the Domain Administrator, and I haven't tried to change
the ownership, I've simply added an ACE and tried to save the DACL with the
same (untouched) SecurityDescriptor
(i.e. objSecurity.SetSecurityDescriptor "D:\SecTest", ADS_PATH_FILE,
objSecDesc, ADS_SD_FORMAT_IID )

I was trying to add code to change the owner programmatically, so I went and
"manually" set the owner to another (non-admin) account to see if I could
pick up the change of ownership in my code, and then discovered that while
the owner was set to the non-admin account, I would get this error message
whenever I tried to write the SD, even though that account is already the
owner, and I'm not trying to change the ownership, just the DACL!

I would really appreciate any help you could give me... I obviously can't
deploy the component if it blows up when a different owner is set on file...

Thanks in Advance!

John Harvey

----
Go! Canucks, Go!
http://www.canucks.com


Relevant Pages

  • Re: "Compaq_Owner"
    ... Select "Sharing and Security" (or "Properties" if you prefer. ... In that panel, click the person/group that you want to be owner, select "Replace Owner on Subcontainers and Objects" if needs be, and click "Apply". ... Make sure your account is a full administrator account and then take ownership of the "compaq_owner" files and folders. ...
    (microsoft.public.windowsxp.help_and_support)
  • RE: fix this damn NTFS bug!!
    ... On the Windows 2000, we can solve the problem by this way. ... Open My Computer and right click the D and select Sharing and Security ... Select your account in the "Change owner to:" pane. ...
    (microsoft.public.windows.server.migration)
  • Problem setting a SecurityDescriptor using ADSI
    ... I have just run into an interesting problem when setting a Security ... Decriptor on an NTFS file. ... This security ID may not be assigned as the owner of this object. ... the owner was set to the non-admin account, I would get this error message ...
    (microsoft.public.security)
  • RE: Admin account vs personal/limited account in win xp
    ... To find out the owner of a file, ... button to open the Advanced Security Settings dialog box. ... tab it will tell you which account is the current owner, ...
    (microsoft.public.windowsxp.setup_deployment)
  • [NEWS] eNom Domain Registration Services Domain Hijacking Vulnerability
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... eNom provides Internet domain name services. ... the owner of the domain ... Domain Transfer Request for EXAMPLE.XXX ...
    (Securiteam)