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 32287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T13:44:20+00:00 2026-05-10T13:44:20+00:00

Imagine we have a program trying to write to a particular file, but failing.

  • 0

Imagine we have a program trying to write to a particular file, but failing.

On the Windows platform, what are the possible things which might be causing the file to be un-writable, and what steps could be suggested to an end user/administrator to fix it.


Please include steps which might require administrator permissions (obviously users may not be administrators, but for this question, let’s assume they are (or can become) administrators.

Also, I’m not really familiar with how permissions are calculated in windows. – Does the user need write access to each directory up the tree, or anything similar to that?

  • 1 1 Answer
  • 2 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. 2026-05-10T13:44:21+00:00Added an answer on May 10, 2026 at 1:44 pm

    Some suggestions:

    • No write permission (get permission through Security tab on file Properties window; you must be the file owner or an Administrator)
    • File is locked (close any program that may have the file open, then reboot if that doesn’t help)
    • File has the read-only DOS attribute set (unset it from file Properties window, or with attrib -r; you must be the file owner or an Administrator)

    Edit 1: Only the second item (file is locked) has a possible solution that all users are likely to be able to do without help. For the first and third, you’ll probably want to provide guidance (and hope the file wasn’t made read-only intentionally!).

    Edit 2: Technically, the user does need write and execute (chdir) permissions on all directories up to the root. Windows may skip some of the recursive checks up the tree as a performance optimization, but you should not rely on this because admins can force on these so-called ‘traverse checks’ for certain users.

    Edit 3: @RobM: Yes, you should check that there is no obvious reason that the user should not have the permissions she needs but does not have. I alluded to this in a less direct way in my first edit. However, in some cases users should have write permission to a file but do not because of filesystem corruption, a misbehaving program, or a mistake on their own part.

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

Sidebar

Related Questions

Imagine I have a table which stores a series of sparse vectors. A sparse
Imagine I have a C++ class Foo and a class Bar which has to
I'm trying to get a program I'm writing (in F#, though I would imagine
Imagine you have a program written e.g. in Java 1.4 or C# 1.0. Of
I have a command line program, which outputs logging to the screen. I want
I've been trying to write a program in C++ that will monitor running processes
I am trying to write a drawing program for use with a tablet. For
I have a Windows program that needs to update itself from a server automatically.
I'm trying to write a program to place students in cars for carpooling to
I'm trying to create a program that extracts the metadata from an image file.

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.