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. Real read-only file Windows
Forum Updated to NodeBB v4.3 + New Features

Real read-only file Windows

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.7k 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.
  • G Offline
    G Offline
    Gute
    wrote on 20 Aug 2010, 22:22 last edited by
    #1

    I need to create a application for a LAN, like a little chat, but I need to save logs files with the conversations, but the files can't be erased or edited, is possible to do that? and if is possible I need a clue.

    thanks

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on 21 Aug 2010, 07:00 last edited by
      #2

      As far as I know that is not possible.

      Linux has a pretty obscure feature of an "append" flag for just such purposes. Files with this flag set can only have contents appended, no other write operations are possible. But even this flag is more meant as a way to prevent accidents than to stop file owners from editing it.

      Depending on how temper proof you need your system to be you could just run a logger process as some system user, have it log into files belonging to this system user and only allow read access to the users. Might be good enough, even though any admin (or anybody booting from a linux live CD) can still meddle with the logs.

      The only temper-proof way I can see is to write your file to a WORM (Write Once Read Many) medium.

      Alternatively you might be able to come up with a system based on hashes and asymetric encryption which could detect manipulation of the log file. But make sure to get lots of reviews on your architecture and implementation if you go down this alley: It is hard to get this right!

      1 Reply Last reply
      0
      • G Offline
        G Offline
        Gute
        wrote on 21 Aug 2010, 13:04 last edited by
        #3

        Thanks for the answer, I thought it was not possible, and thanks for the alternatives

        1 Reply Last reply
        0

        1/3

        20 Aug 2010, 22:22

        • Login

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