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 prohibit users from changing the system time?

How to prohibit users from changing the system time?

Scheduled Pinned Locked Moved C / C++ / MFC
securitytutorialquestionlearning
5 Posts 2 Posters 1 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.
  • N Offline
    N Offline
    neumedical
    wrote on last edited by
    #1

    The computer user can log on Win2000 as an administrator, while he should be forbidden to change the system time under windows 2000. Of course we can carry this point by setting the "User Rights Assignment" through the "Domain Controller Security Policy" tool, but how can we gain this end through VC programing?:confused:

    B 1 Reply Last reply
    0
    • N neumedical

      The computer user can log on Win2000 as an administrator, while he should be forbidden to change the system time under windows 2000. Of course we can carry this point by setting the "User Rights Assignment" through the "Domain Controller Security Policy" tool, but how can we gain this end through VC programing?:confused:

      B Offline
      B Offline
      Bill Wilson
      wrote on last edited by
      #2

      Are you asking how to prevent the system administrator from adminstering the system? Why not have the user logon as something other than Administrator? Even if you do this, what keeps the Administrator from simply resetting the right manually? (Or does it not matter). You can post messages to any window. So if you can get the the gui of the tool you need opened, you can send messages to it and any controls in it. That gives your program control of the tool.

      N 1 Reply Last reply
      0
      • B Bill Wilson

        Are you asking how to prevent the system administrator from adminstering the system? Why not have the user logon as something other than Administrator? Even if you do this, what keeps the Administrator from simply resetting the right manually? (Or does it not matter). You can post messages to any window. So if you can get the the gui of the tool you need opened, you can send messages to it and any controls in it. That gives your program control of the tool.

        N Offline
        N Offline
        neumedical
        wrote on last edited by
        #3

        Thank you for your reply. I am working for a special system. The user must logon as an administrator, and he can access "command console" only. How to prevent him from changing the system time then?

        B 1 Reply Last reply
        0
        • N neumedical

          Thank you for your reply. I am working for a special system. The user must logon as an administrator, and he can access "command console" only. How to prevent him from changing the system time then?

          B Offline
          B Offline
          Bill Wilson
          wrote on last edited by
          #4

          I think you will need to set the rights using the Domain Controller Security Tool, you mentioned in your original post. I'm not familiar with that tool, but if you can figure out how to launch it from your program, if you can get the the gui of the tool you need opened, you can send messages to it and any controls in it. That gives your program control of the tool.

          N 1 Reply Last reply
          0
          • B Bill Wilson

            I think you will need to set the rights using the Domain Controller Security Tool, you mentioned in your original post. I'm not familiar with that tool, but if you can figure out how to launch it from your program, if you can get the the gui of the tool you need opened, you can send messages to it and any controls in it. That gives your program control of the tool.

            N Offline
            N Offline
            neumedical
            wrote on last edited by
            #5

            Thank you again. You are right that I can set the rights by using the tool([Start]-[Programs]-[Administrate tools]-[Local Security Policies]-[Security Setting]-[Local Policies]-[User Rights Assignment]). I just want to restrict the user in an unvisible or hidden process. That is, we should not see the gui of the tool. How to implement it throught VC programing?

            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