Re: StartService() API and encrypted file systems.

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



But users have full freedom to encrypt folders. A product that is to or can be run as a NT Service, need to take it into account - at least be in its KB or FAQ.

=

Alexander Grigoriev wrote:
I'd say this is unreasonable requirement for a product.

"Jayasimha Ananth" <jayasimha.a@xxxxxxxxx> wrote in message news:24295bc7-d92f-415d-9abf-3b8014b0fe43@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi All,
Thank you all for the responses. As for the question, why am I
encrypting the folder? There is no specific reason for that or a
specific functionality that is expected to be achieved. It is a
scenario that is required to be handled by the product that we are
working on.

Yes, it is the problem with the user rights. When I change
the user to the owner of the folder (via services.msc), I am having no
problems whatsoever. But programmatically when I try to use
OWNER_SECURITY_INFORMATION with SetServiceObjectSecurity() API, I am
getting an error of -

"Unable to set OWNER_SECURITY_INFORMATION - This security ID may not
be assigned as the owner of this object."

(from the FormatMessage() call).

Thanks for all the pointers,
--Jayasimha

On Dec 20, 7:20 pm, Tommy <b...@xxxxxxxxxxxxx> wrote:
Tim Roberts wrote:
Tommy <b...@xxxxxxxxxxxxx> wrote:
It is the reason because thats the error he got - Access Denied.
That error covers a surprisingly wide range of access problems (including,
for example, having the file opened in another program).
Alexander is right, the issue is here is not access rights, it's that
the service account isn't the owner, and thus cannot decrypt
the file, even if it has the rights to read it.
Sure, but I fail the see the difference. The end result is still a
ERROR_ACCESS_DENIED. Are you saying there should be a different
error, like some

ERROR_DECRYPTION_FAILED
ERROR_NO_ACCESS_TO_DECRYPT
ERROR_INCORRECT_CERTIFICATE_THUMBPRINT

Again, its all using the same software so its a matter of just who
have access to open the file. Obviously the file I/O drivers are
returning a simple ERROR_ACCESS_DENIED and no other clue, and in the
security arena, the less clues the better.

Apparently, this is an not an isolated issue (goggle show many issues
related to this) and it occurs in many service applications where the
user has the full unrestricted option and ability to encrypt his file
system. Once he does that, he must know that the 'transparent' and
automated backend loader services (NT services) must have the same
'transparent' privilege to access it, load/decrypt.

The key word is 'transparent'

The user should explore the encrypted folder and see the properties
for the encrypted exe and see the Advanced | Details, it will show who
has "transparent" access to encryption/decryption access this file
with the certificate thumb print.

I don't see why the calling process can not inherit ownership just
like the interactive owner would (via impersonating the right account
for the calling process).

--


.



Relevant Pages

  • There is no encryption recovery policy configured for this system
    ... I defined an EFS policy at the domain level. ... DRAs were successfully imported. ... I am able to encrypt folders & files ... I am not able at all to encrypt files & folders ...
    (microsoft.public.windows.server.security)
  • Re: Folder Encrypton
    ... > In attempting to encrypt folders in XP (file prop., ... compress or encrypt attributes) the check box to ...
    (microsoft.public.windowsxp.security_admin)
  • Folder Encrypton
    ... In attempting to encrypt folders in XP (file prop., ... compress or encrypt attributes) the check box to ...
    (microsoft.public.windowsxp.security_admin)
  • Re: No access to encrypted files after Password change
    ... Yea Howard, you are quite right, that would make EFS ... That is expected when the pwd is reset rather than ... >>Change requires that you be logged in as the account ... >>> Microsoft says that once you encrypt ...
    (microsoft.public.windowsxp.security_admin)
  • Re: No access to encrypted files after Password change
    ... That is expected when the pwd is reset rather than ... >Change requires that you be logged in as the account ... >> Microsoft says that once you encrypt ...
    (microsoft.public.windowsxp.security_admin)