Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7659189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:18:01+00:00 2026-05-31T13:18:01+00:00

It is difficult to describe with 1 or 2 words so here I will

  • 0

It is difficult to describe with 1 or 2 words so here I will give a use case:

  1. UserA creates a text file which acts as a fillable form/checklist
  2. UserA saves the file to a shared repository
  3. UserB and UserC open the file and fill the form/checklist as they do their work
  4. Changes to fields (ideally) or to the whole file are ignored if file saved by accident

Note: UserB and UserC may need to make structural changes to the text file also sometimes, so forbidding them write/modify access at file-system/file-share levels is not an option. It has to be a conscious decision when structural editing is needed (e.g. a user opens the file with a special flag to vim or presses an “unlock” key sequence after opening the file).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T13:18:02+00:00Added an answer on May 31, 2026 at 1:18 pm

    The workflow you describe suggests that UserB and UserC don’t actually need to save the file (unless they’re doing structural edits), they just usually need it open so they can mark quick line items done as they complete them. (If they actually do need their edits saved, you’d need to supply a lot more detail in your use case, and then I’d agree with the commenters anyway that you need a more robust solution.)

    The easiest way to do this is to mark the file as readonly in the filesystem. On Windows, you can do this with attrib +r filename.txt. I forget whether there’s an equivalent attribute in Unix-style systems, or if you instead have to actually remove write permissions completely.

    When UserB or UserC need to save their changes for structural edits, they do :w! instead of the usual :w to save the file. This forces vim to ignore the readonly attribute and save the file anyway.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sometimes it's difficult to describe some of the things that us programmers may think
I'm having a difficult time finding any resources that describe good UI patterns for
Please excuse the ambiguous title; it's difficult to describe in a single line. Basically
This is a very difficult problem to describe. The big picture: An ajaxed dialog
This is a difficult problem to describe so please let me know if anything
Here's a fairly common UI pattern: Text box that contains a path to the
This is kind of difficult to describe. I have a table with two fields:
I'm finding it difficult to describe this problem very concisely, so I've attached the
It's a bit difficult for me to describe, but this pseudo C# should explain
I'm not sure how to describe what I need but I'll give it a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.