Giter Club home page Giter Club logo

Comments (3)

rgl avatar rgl commented on June 7, 2024 2

That is normally done by the setup application, while executing as Administrator/SYSTEM. The setup application should create the directories with the appropriate permissions (e.g. prevent ACL propagation/inheritance from the parent directory, and grant Full Permission to SYSTEM, Administrators, and NT SERVICE\DnsService).

PS Probably the application should also be modified to write somewhere inside C:\ProgramData (e.g. C:\ProgramData\Technitium\DnsServer). If possible, C:\Program Files should be treated as read-only.

from dnsserver.

pricerc avatar pricerc commented on June 7, 2024 1

Thanks for the suggestion. I tried it and the issue with it is that the service does not have privilege to create the C:\Program Files (x86)\Technitium\DNS Server\config folder thus it fails to start. Need to find a way to fix this to be able to use this.

As mentioned by @rgl, data should not be stored in "Program Files", it should be in "C:\ProgramData". Or in "%systemroot%\System32\config\systemprofile" (typically "C:\WINDOWS\system32\config\systemprofile").

You would still need to create the ProgramData folder in your setup script.

edit to add: "C:\Program Files" on Windows is like "/usr/bin" on unix/linux - you don't put data in there.

from dnsserver.

ShreyasZare avatar ShreyasZare commented on June 7, 2024

Thanks for the suggestion. I tried it and the issue with it is that the service does not have privilege to create the C:\Program Files (x86)\Technitium\DNS Server\config folder thus it fails to start. Need to find a way to fix this to be able to use this.

from dnsserver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.