Do Not Edit is a file permission that prevents you from changing or deleting a document

When a file or folder has Do Not Edit applied to it, your operating system blocks you from making changes. You can open the file to read it, but you cannot modify the text, save over it, delete it, or move it to a different location. The restriction sits at the system level, so it applies no matter which program you use to open the file.

This is different from a file being read-only in a single process. A word processor might let you open a document in read-only mode as a safety feature, but you can usually turn that off. Do Not Edit is enforced by Windows, macOS, or Linux itself — the operating system refuses the change before the program even tries to make it.

The restriction can be set by the file's owner, by an administrator on a shared computer, or by the software that created the file. You see it most often on system files that keep your computer running, on files in shared folders where multiple people work, or on documents someone wants to preserve without accidental changes.

Key Takeaways

  • Do Not Edit prevents you from changing, deleting, or moving a file, though you can still open and read it.
  • The restriction is enforced by your operating system, not by the program you use to open the file.
  • You can remove Do Not Edit permissions if you own the file or have administrator access on your computer.
  • System files often have Do Not Edit set to prevent accidental damage to how your computer runs.
  • Shared folders sometimes use Do Not Edit to let people read documents without risking changes from other users.

How Do Not Edit appears on Windows, macOS, and Linux

On Windows, the restriction shows up as a checkbox labeled "Read-only" in the file's Properties window. Right-click the file, select Properties, and look at the General tab. If the Read-only box is checked, the file has Do Not Edit applied. The checkbox may appear grayed out if an administrator set the restriction and you do not have permission to change it.

macOS calls it "Locked" instead of Read-only. Click the file once, press Command+I to open Get Info, and look for a checkbox that says "Locked" near the bottom. Checking or unchecking that box controls whether the file can be edited.

Linux uses file permissions that work differently. The restriction is usually shown as r-- (read-only) in the permission string when you list files in the terminal. You can see this by typing ls -l in the command line. Changing permissions requires the chmod command, which only the file owner or an administrator can run.

Why files get locked with Do Not Edit

System files — the code that runs your operating system and built-in programs — are locked to prevent accidental damage. If you delete or change a Windows system file by mistake, your computer may not start up properly or may crash. Locking these files means you have to deliberately remove the restriction before you can harm them, which gives you a moment to reconsider.

Shared folders in offices often lock files so multiple people can read the same document without one person accidentally overwriting another's changes. A manager might lock a budget spreadsheet so the team can view the current numbers, but only the manager can update it. This prevents version confusion and keeps one person from saving over someone else's work.

Software installers sometimes lock files they create so you do not accidentally delete them and break the program. Backup files and archives are often locked to protect them from being modified before they are restored. Some people lock their own important documents — like a finished tax return or a signed contract — to remind themselves not to edit them further.

How to remove Do Not Edit if you own the file

On Windows, right-click the file and select Properties. In the General tab, uncheck the Read-only box and click explore, then OK. If the checkbox is grayed out, you do not have permission to change it — you may need to ask an administrator, or the file may be protected by a different system.

On macOS, click the file once, press Command+I, and uncheck the Locked box. Close the Get Info window and the change takes effect when ready.

On Linux, open the terminal, navigate to the folder containing the file, and type chmod u+w filename (replace "filename" with the actual name). This adds write permission for the owner. If you want to make the file editable by everyone who can access it, use chmod a+w filename instead.

If you cannot remove the restriction even though you own the file, the file may be on a read-only storage device (like a DVD or a USB drive set to read-only mode), or an administrator may have locked it at a higher level. Check whether the storage device itself is write-protected, or ask your system administrator for help.

When you should not remove Do Not Edit

Do not remove the restriction from system files unless you are following specific instructions from a support technician or a trusted guide for fixing a particular problem. Removing Do Not Edit from a Windows system file and then editing it can break your operating system. If you need to modify a system file, the safer approach is to use the official tool designed for that change, not to unlock the file and edit it directly.

If a file is locked by your company's IT department or by a shared folder policy, removing the restriction may violate your workplace rules. Check with your IT team or manager before unlocking files that are not your personal documents.

Some files are locked because they are part of a backup or archive. Removing Do Not Edit and then editing these files defeats the purpose of the backup — you lose a clean copy to restore from if something goes wrong. Leave these files locked unless you have a specific reason to change them.

Do Not Edit versus other file restrictions

A file can be restricted in different ways, and Do Not Edit is just one of them. A file might be encrypted, meaning it is scrambled and cannot be opened without a password — this is stronger than Do Not Edit because you cannot even read the file. A file might have a password that lets you open it but not edit it, which is similar to Do Not Edit but easier to bypass. A file might be owned by a different user, so your operating system refuses to let you touch it at all.

Some programs add their own restrictions on top of the operating system's Do Not Edit. Microsoft Word, for example, can mark a document as "final" so it opens in read-only mode even if the file itself is not locked. Google Docs can restrict who can view or edit a document through sharing settings. These process-level restrictions are separate from Do Not Edit and work only within that program.

If you cannot edit a file and you are not sure why, check three things in order: whether the file itself has Do Not Edit applied, whether the storage device is write-protected, and whether the process has its own read-only mode turned on. Fixing the right restriction will let you edit the file again.

Frequently Asked Questions

Can I edit a Do Not Edit file if I copy it to a new location?

Not automatically. When you copy a file, the Do Not Edit restriction usually copies with it. However, some operating systems or file systems may not preserve the restriction during the copy, so the new file might be editable. The safest approach is to remove Do Not Edit from the original file, or to ask the file's owner for an unlocked version.

What if I forgot my password and cannot unlock a file?

If the file is password-protected, you will need the password to remove the restriction. If you own the file and forgot the password, you may be able to reset it through the process that created it, or you may need to contact the software maker's support. If someone else set the password, you will need to ask them to unlock it.

Does Do Not Edit protect a file from being deleted?

Do Not Edit prevents you from editing or overwriting a file, but on most systems you can still delete it. If you want to prevent deletion as well, the file needs a different type of restriction, such as being owned by a different user or having special permissions set by an administrator.

Why does my file show as Do Not Edit when I created it?

Some applications automatically lock files they create, or your operating system may have locked it based on where you saved it. Check whether the folder itself has restrictions that explore to all files inside it. You can also check your antivirus software — some security programs lock files they think are suspicious.

Can I edit a Do Not Edit file on a different computer?

If you move the file to a different computer, the Do Not Edit restriction usually stays with it. However, if the restriction was set by your workplace's network, it may not explore on a personal computer. The safest assumption is that the restriction will follow the file, so you should remove it on the original computer if you need to edit it elsewhere.