How to Password Protect Sections of a Document in LibreOffice Writer

LibreOffice Writer can make a selected section read-only and require a password before someone removes that protection. This is useful when a document should remain editable overall but a passage such as approved wording, instructions, or a form introduction should not be changed by mistake.

There is an important limit: LibreOffice describes section protection as a way to prevent accidental changes, not as information security. A protected section remains part of the document. Use file encryption when people must not be able to open or read the document at all.

What you should see when protection is set up correctly

The protected passage should still appear in the document, but Writer should block edits inside that section. Text outside it should remain editable. If a user tries to remove the section protection through the Sections dialog, Writer should ask for the correct password. This gives you a practical way to test both the boundary and the password behavior.

This procedure matches the current LibreOffice 26.8 Help for Writer. The exact menu placement can vary with the user interface layout or localization, but the commands are named in the standard menu-based interface.

Before you start: identify the exact text to protect

Section protection applies to content placed inside a Writer section. Decide which paragraphs belong in the protected passage before changing the document. If the section does not already exist, you can select the text and create one. If the text is already in a section, edit that section instead of creating a second one around it.

Save a working copy first if this is an important document. That makes it easier to check the boundaries and restore the original if the wrong paragraphs are selected.

Protect a new section with a password

1. Select the content and create a section

In the document, select the paragraph or continuous block of text that should become read-only. Choose Insert > Section. Writer opens the Section dialog. Give the section a useful name, such as ApprovedText, so it is easier to recognize later. Confirm that the selected content is the content you intended to protect.

LibreOffice Writer has a paragraph selected while the Insert menu is open and the Section command is highlighted.
Select the passage to protect, then use Insert and choose Section to place it in a section.

If the content already belongs to a section, skip the selection and creation step. Choose Format > Sections, select the relevant section from the list, and edit it.

2. Turn on write protection

In the Section dialog, find the Write Protection area. Select Protect. To require a password when protection is removed, also select With password, then click Password.

The Section dialog shows the Write Protection area with Protect and With password checked and the Password button visible.
Select both protection check boxes in the Section dialog before setting the password.

Checking only Protect makes the section read-only but does not require a password to turn protection off. Use both check boxes for a password-protected section.

3. Enter and confirm the password

Enter the password in the Password dialog, repeat it in the confirmation field, and confirm. LibreOffice Help specifies a minimum of five characters. Use a longer, unique password for a document that matters, and store it in a password manager or another approved location. The password is required later to remove or change the protection.

A LibreOffice Password dialog contains blank Password and Confirm fields with OK and Cancel buttons.
Enter the same password in both fields and confirm it; the password must be at least five characters.

Return to the Section dialog and confirm the change. Save the document in LibreOffice’s native OpenDocument Text format if you need the most direct match with Writer’s own section feature. When saving to another word-processing format for someone else, test a copy in the recipient’s software before relying on section protection; the Help pages do not guarantee identical behavior across every format and editor.

Verify the protected boundary before sharing

Test the document while it is open in Writer. Click inside the protected passage and try to insert or delete a character. Writer should prevent the change and display a warning. Then click in a paragraph immediately before or after the section and confirm that normal editing still works there.

A Writer document shows one protected paragraph above a separate editable paragraph and a warning dialog after an edit attempt.
Check that Writer blocks changes inside the section while text outside the section remains editable; the dialog appearance can vary by version and theme.

Also verify that the protection requires the password when you try to remove it. Open Format > Sections, select the protected section, and clear Protect. Writer should request the correct password before it allows the protection to be removed. Cancel the dialog so the protection stays on.

  • Expected result: the chosen section stays visible but read-only.
  • Boundary check: nearby unprotected paragraphs remain editable.
  • Password check: removing the protection prompts for the password.
  • Save check: save, close, and reopen the document, then repeat a brief edit test.

Edit or remove protection later

Choose Format > Sections and select the section you want to change. To remove protection, clear Protect. If the section has a password, enter the correct one when prompted, then confirm the dialog. To change a password, use the section’s Password button and follow the prompt to set and confirm the new value.

If the protected text is difficult to select with the mouse, use the section list in the dialog to choose it by name. Do not click Remove unless your goal is to convert the section to ordinary text; removing a section is different from merely turning off its write protection.

When section protection is not enough

Section passwords are for edit prevention, not confidentiality. They do not encrypt the complete document or hide the protected text from someone who can open the file. If readers should not see the content, save the document with an opening password using an OpenDocument format. LibreOffice’s Save dialog documentation says that only LibreOffice XML-based formats can be saved with a password.

If you are distributing a PDF, use the PDF export security options when appropriate. LibreOffice’s PDF export documentation distinguishes a password that is required to open the PDF from a permissions password used to restrict selected actions. Test the exported file in a separate PDF viewer and communicate its password through a separate channel.

Choose the control according to the outcome you need:

NeedUseResult to verify
Prevent accidental edits to one passageProtected Writer section with passwordWriter blocks edits in that section and asks for the password to unprotect it
Prevent readers from opening an editable documentSave with password in an OpenDocument formatThe file requests a password before opening
Share a read-only copy with controlled openingExport to PDF and configure PDF securityThe PDF viewer requests the open password or applies the selected permissions

Limits and troubleshooting

  • The whole document seems protected: confirm you selected only the intended text before choosing Insert > Section. Reopen Format > Sections and inspect the selected section’s boundaries.
  • Anyone can turn off protection: verify that both Protect and With password were selected, then save and test again.
  • You cannot remember the password: the documented removal procedure requires the correct password. Keep it in a managed password store; do not assume there is a supported password recovery shortcut.
  • You need to hide information: section protection does not conceal text. Use file encryption or remove the sensitive text from the shared copy.
  • The feature behaves differently after conversion: check the file in the exact application and format that recipients will use. If edit prevention is important, distribute a verified protected copy or use a workflow that preserves the needed control.

Password-protecting a section is a good fit when collaborators may edit a Writer document but should leave a particular passage unchanged. A successful setup is easy to recognize: only the chosen section resists editing, adjacent text remains usable, and unprotecting the section requires its password. For confidentiality, protect the file itself rather than relying on a section lock.

Official LibreOffice references

Leave a Comment

How to Create and Send a Meeting Invite in Outlook

How to Create and Send a Meeting Invite in Outlook

Create an Outlook meeting invite, add required or optional attendees, choose a time, add Teams details, set recurrence, and check replies in new or classic Outlook.

How to Add a Character Limit to Cells in Excel

How to Add a Character Limit to Cells in Excel

Use Excel's Data Validation settings to set a maximum, minimum, exact length, or character range, then add clear prompts and error alerts.

How to Fix the “We Can’t Schedule the Meeting” Error in Outlook

How to Fix the “We Can’t Schedule the Meeting” Error in Outlook

Fix the Outlook “We can’t schedule the meeting” error by checking account support, refreshing Teams sign-in, and repairing the Classic Outlook add-in.

How to Change the Language in Office 365 (Microsoft 365)

How to Change the Language in Office 365 (Microsoft 365)

Change Office 365 menus, spelling and grammar settings, or keyboard input in desktop apps and Microsoft 365 for the web.

How to Auto-Forward Emails in Outlook 365

How to Auto-Forward Emails in Outlook 365

Learn how to auto-forward all or selected emails in Outlook 365 using Forwarding settings or Rules, plus how to stop forwarding and fix blocked external forwards.

How to Use Microsoft Editor in Word for Microsoft 365

How to Use Microsoft Editor in Word for Microsoft 365

Use Microsoft Editor in Word for Microsoft 365 to check spelling, grammar, clarity, and conciseness, review suggestions, and tune proofing settings.

How to Add an RSS Feed to Outlook 365 in Classic Outlook

How to Add an RSS Feed to Outlook 365 in Classic Outlook

Learn how to add an RSS feed to Outlook 365 in classic Outlook for Windows, find the correct feed URL, manage subscriptions, and fix common RSS issues.

How to Go to a Page in Word for Microsoft 365

How to Go to a Page in Word for Microsoft 365

Jump straight to any page in Word for Microsoft 365 with Ctrl+G or F5, relative page numbers, or the Navigation pane, with Windows and Mac shortcuts.

How to Add Contacts to Outlook on Web, Windows, and Mobile

How to Add Contacts to Outlook on Web, Windows, and Mobile

Learn how to add contacts to Outlook on the web, new Outlook, classic Outlook, and mobile, plus how contact syncing and CSV imports work.

How to Change the Microsoft Word Background Color or Add an Image

How to Change the Microsoft Word Background Color or Add an Image

Change a Word page color, add a picture background, remove either, and enable background printing on Windows or Mac with clear, current steps.