Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How do I create a directory which can only be accessed and manipulate by the application

How do I create a directory which can only be accessed and manipulate by the application

Scheduled Pinned Locked Moved Solved General and Desktop
directorysecurityc++11windows10
6 Posts 3 Posters 702 Views
  • 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.
  • D Offline
    D Offline
    Deepak Dinesh
    wrote on 2 Dec 2022, 10:39 last edited by
    #1

    I am doing some R&D on a feature to be implemented and I want to create a directory which can only be opened and manipulated by the application; the user even with admin rights should not be able to change the permission . Ie is there any api or method available to create a protected directory that can only be opend by the application with a prompted password ; like folder lock . I am using c++11 with latest qt creator for windows .

    J 1 Reply Last reply 2 Dec 2022, 10:45
    0
    • D Deepak Dinesh
      2 Dec 2022, 10:39

      I am doing some R&D on a feature to be implemented and I want to create a directory which can only be opened and manipulated by the application; the user even with admin rights should not be able to change the permission . Ie is there any api or method available to create a protected directory that can only be opend by the application with a prompted password ; like folder lock . I am using c++11 with latest qt creator for windows .

      J Offline
      J Offline
      JonB
      wrote on 2 Dec 2022, 10:45 last edited by JonB 12 Feb 2022, 10:50
      #2

      @Deepak-Dinesh
      No. (Not so far as I know anyway, even for Windows.)

      the user even with admin rights should not be able to change the permission .

      A user with admin rights can change anything. Else we would be in a bad situation....

      EDIT
      Hmm, for Windows, maybe I'm wrong! Article https://www.laptopmag.com/articles/password-protect-folder-windows-10 , https://toolbox.easeus.com/file-lock-tips/lock-a-folder.html ? Whether that can be adjusted so that an application can lock/unlock/access to take password from user and apply from program I don't know. I would still accept an admin/user with admin rights to be to control this/switch it on or off.

      D 1 Reply Last reply 2 Dec 2022, 10:59
      0
      • J JonB
        2 Dec 2022, 10:45

        @Deepak-Dinesh
        No. (Not so far as I know anyway, even for Windows.)

        the user even with admin rights should not be able to change the permission .

        A user with admin rights can change anything. Else we would be in a bad situation....

        EDIT
        Hmm, for Windows, maybe I'm wrong! Article https://www.laptopmag.com/articles/password-protect-folder-windows-10 , https://toolbox.easeus.com/file-lock-tips/lock-a-folder.html ? Whether that can be adjusted so that an application can lock/unlock/access to take password from user and apply from program I don't know. I would still accept an admin/user with admin rights to be to control this/switch it on or off.

        D Offline
        D Offline
        Deepak Dinesh
        wrote on 2 Dec 2022, 10:59 last edited by Deepak Dinesh 12 Feb 2022, 11:02
        #3

        @JonB Ow ok , thanks for your quick reply ; is there any API available to use features of a folder lock applications ?? Atleast any methods to password protect a directory created by the application ? I want to do the dir creation and lock through the QT application itself .

        J 1 Reply Last reply 2 Dec 2022, 11:02
        0
        • D Deepak Dinesh
          2 Dec 2022, 10:59

          @JonB Ow ok , thanks for your quick reply ; is there any API available to use features of a folder lock applications ?? Atleast any methods to password protect a directory created by the application ? I want to do the dir creation and lock through the QT application itself .

          J Offline
          J Offline
          JonB
          wrote on 2 Dec 2022, 11:02 last edited by JonB 12 Feb 2022, 11:03
          #4

          @Deepak-Dinesh
          I would not know! What I can say is it would be outside the scope of any Qt code (which is mostly platform-independent) as it would be Windows-only. Unless somebody else answers here, you would need to follow the links above and Google a bit to see how it's implemented under Windows and likely make direct calls to any library from your Qt code.

          D 1 Reply Last reply 3 Dec 2022, 08:19
          0
          • W Offline
            W Offline
            wrosecrans
            wrote on 2 Dec 2022, 15:53 last edited by
            #5

            Create a dedicated user account to run the application. Only let that user have permissions to run the application, and only let that user have permissions to the folder.

            1 Reply Last reply
            0
            • J JonB
              2 Dec 2022, 11:02

              @Deepak-Dinesh
              I would not know! What I can say is it would be outside the scope of any Qt code (which is mostly platform-independent) as it would be Windows-only. Unless somebody else answers here, you would need to follow the links above and Google a bit to see how it's implemented under Windows and likely make direct calls to any library from your Qt code.

              D Offline
              D Offline
              Deepak Dinesh
              wrote on 3 Dec 2022, 08:19 last edited by
              #6

              @JonB thanks

              1 Reply Last reply
              0

              1/6

              2 Dec 2022, 10:39

              • Login

              • Login or register to search.
              1 out of 6
              • First post
                1/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved