Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to grant access rights

How to grant access rights

Scheduled Pinned Locked Moved C / C++ / MFC
sysadmintutorialquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    William Engberts
    wrote on last edited by
    #1

    Hi all, I have a program that runs as a service somewhere on a server. It communicates with a console-type program (possibly on another machine within the network) by means of a messages file. The file is created by the service (because there may be multiple console programs running) However, the service is started by an administrator. Due to this, the console programs do not have access rights to the messages file. It works fine if I create the file manually (the service only creates if it does not exist) but if the file for some reason gets deleted, the consoles are no longer able to add their messages into the file. Is there a way in which I can grant full control rights to all users from the service program after creating the file? Anyone? Please? Thanks in advance, William

    C 1 Reply Last reply
    0
    • W William Engberts

      Hi all, I have a program that runs as a service somewhere on a server. It communicates with a console-type program (possibly on another machine within the network) by means of a messages file. The file is created by the service (because there may be multiple console programs running) However, the service is started by an administrator. Due to this, the console programs do not have access rights to the messages file. It works fine if I create the file manually (the service only creates if it does not exist) but if the file for some reason gets deleted, the consoles are no longer able to add their messages into the file. Is there a way in which I can grant full control rights to all users from the service program after creating the file? Anyone? Please? Thanks in advance, William

      C Offline
      C Offline
      Chris Meech
      wrote on last edited by
      #2

      Sorry this doesn't answer your question, but I'd recommend instead you have a network group that has the create and write permissions and then ensure the administrator and other users are members of that group.

      Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra] posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]

      W 1 Reply Last reply
      0
      • C Chris Meech

        Sorry this doesn't answer your question, but I'd recommend instead you have a network group that has the create and write permissions and then ensure the administrator and other users are members of that group.

        Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra] posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]

        W Offline
        W Offline
        William Engberts
        wrote on last edited by
        #3

        Which is indeed what I advised my clients. However, there are several clients using this software and if there is one thing I learned over the years: Sysadmins will ALWAYS have their own thoughts on how to organise and authorize their users! William

        C 1 Reply Last reply
        0
        • W William Engberts

          Which is indeed what I advised my clients. However, there are several clients using this software and if there is one thing I learned over the years: Sysadmins will ALWAYS have their own thoughts on how to organise and authorize their users! William

          C Offline
          C Offline
          Chris Meech
          wrote on last edited by
          #4

          Ah yes, clients, users and sysadmins. The nemesis of our existence. :) It might be possible at the folder level to allow full control to network access and to have that access flow to sub-folders. That might override the local adminstrator account when it creates the file.

          Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra] posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups