Software⏱️ 3 min read📅 2026-06-15

How to Fix: Qt creator throws permission error on project (files owned by me) within directory of root

Permission error in Qt Creator on Arch Linux project

Quick Answer: Check the file permissions and ownership, ensure that the user running Qt Creator has write access to the project directory.

Qt Creator throws a permission error when attempting to write files within a Qt project directory that is owned by the current user, in this case, khvah. This issue affects users who have recently made the switch from Ubuntu to Arch Linux and are using their home directory as the root directory for their projects.

This error can be frustrating because it prevents users from making changes to their projects, even though they own all the files within the project directory.

💡 Why You Are Getting This Error

  • The primary reason for this issue is that Qt Creator does not have write permission in the project directory. This is likely due to the default permissions set on the Arch Linux system, which restrict access to certain directories. In this case, the project directory is owned by the root user and has strict permissions set, preventing the current user from writing files.
  • An alternative reason for this issue could be that Qt Creator's sandboxing mechanism is not properly configured, causing it to fail when attempting to write files in the project directory.

🚀 How to Resolve This Issue

Changing the Project Directory Permissions

  1. Step 1: Open a terminal and navigate to the project directory. Run the command `chmod -R u+w` to change the permissions of all files and subdirectories within the project directory.
  2. Step 2: Alternatively, you can use the `chown` command to change the ownership of the project directory and its contents to the current user. For example, run `sudo chown -R khvah:khvah convQML` to change the ownership to khvah.
  3. Step 3: After changing the permissions or ownership, restart Qt Creator and try opening the project again.

Using a Different Project Directory

  1. Step 1: Create a new directory outside of your home directory, for example, `/home/convQML`. Navigate to this directory and create a symbolic link to your original project directory using the `ln -s` command. For example, run `ln -s ~/convQML /home/convQML`.
  2. Step 2: Open Qt Creator and select the new project directory as the root directory for your project. This should allow you to write files within the project directory without encountering permission errors.

✨ Wrapping Up

By changing the permissions or ownership of the project directory, or by using a different project directory, users should be able to resolve the Qt Creator permission error and continue working on their projects.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions