How to Change Permissions for the fstab File in Linux Mint?

November 18, 2025 3 answers
Asked by drill+guide
I'm currently using a mini-PC with Linux Mint 22.2 as I work on fixing my desktop. I connected my old 6 TB hard drive in an enclosure and am trying to set up Plex as a media server for my home network. However, I've hit a snag where I need to add a line to the /etc/fstab file, but it's read-only. I've searched online for guidance, but most resources assume a level of knowledge that I don't have. I'm familiar with making files executable but not with changing permissions for configuration files. Can someone walk me through how to safely make /etc/fstab writable, and how to revert it back to read-only afterward? Additionally, any tips on finding this info on my own would be appreciated!

Answers

fennel bulb!
You can use `sudo` to edit the fstab file. Just open your terminal and type `sudo vi /etc/fstab` or `sudo nano /etc/fstab`, depending on which text editor youโ€™re comfortable with. The `sudo` command gives you the necessary permissions to modify system files, similar to the 'run as administrator' option in Windows. If you use a GUI editor like Kate, it can handle permissions for you when you save changes!

_after_the_verdict: Thanks for the clarity! I wasnโ€™t too sure about using sudo, so this helps a lot.

Reply to this answer
set-aside
If you need more guidance, check out the resources online for Linux users! Also, remember to make regular backups of important files and preferably test things in a virtual machine first. This way, youโ€™ll have a safe environment to try things out without risking your main system.

filling_in_forms: That's a great tip! I will definitely look into virtual machines to practice more.

Reply to this answer
_monday memo
First, make a backup of your fstab just to be safe. Run this command: `cp /etc/fstab ~/fstab.bak`. Then, edit the file with `sudo nano /etc/fstab`, make your changes, and save it by pressing Ctrl + X, then Y to confirm. After editing, you can run `sudo systemctl daemon-reload` followed by `sudo mount -a` to apply the changes without rebooting.

~nearly persuaded: I appreciate this straightforward guide! Backing up first is a smart idea.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions