Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.
Cannot overwrite file /home/baadshah/.config/QtProject/qtcreator/qtversion.xml: 
Permission denied
Cannot overwrite file /home/baadshah/.config/QtProject/qtcreator/toolchains.xml: 
Permission denied
Cannot overwrite file /home/baadshah/.config/QtProject/qtcreator/devices.xml:
Permission denied
Cannot overwrite file /home/baadshah/.config/QtProject/qtcreator/toolchains.xml: 
Permission denied

I am getting these 4 errors when opening Qt and uinable to find application when opening a new files

share|improve this question
add comment

1 Answer 1

Qt installer adds the configuration directories with root as the owner.

You need to own the files and directories to a file to be able to write into a file. So set permissions like this on each of the files:

sudo -s chmod o+w /home/baadshah/.config/QtProject/qtcreator/*.xml

If the directories

/home/baadshah/.config/QtProject/qtcreator/
/home/baadshah/.config/QtProject/

are owned by someone else than your username (ie. root) you need to change that too. If so you can change this with:

sudo chown -R $USER:$USER /home/baadshah/.config/QtProject/
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.