M
M
Mercury132020-12-16 16:12:50
Access rights
Mercury13, 2020-12-16 16:12:50

How to make windows service make files with user rights?

There is a self-written Windows service. It works fine, but the files it creates are read only from the admin account.
What to do with it?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
Vladimir Korotenko, 2020-12-16
@firedragon

A bunch of options. For example, create a folder with the necessary rights and write to it. The second option is to run the service on behalf of the account. The third hardest thing is to list the ACL and add it to the file.

C
ComodoHacker, 2020-12-16
@ComodoHacker

Set the correct permissions for the corresponding folders.

V
Valery, 2020-12-16
@valerka_shtirliz

just set NTFS permissions to the desired folder

A
Anton Shamanov, 2020-12-16
@SilenceOfWinter

obviously you need a script with admin rights that will change the rights of the generated files.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question