I sometimes need to run a Qt Creator from root. After that, some config files of Qt Creator suddenly have a root as an owner. Therefore when running Qt Creator as user, I am getting nag warnings about impossibility of writing to those files. Is it possible to prohibit from changing owner of those files?
|
Problem was solved by using
After that, I have connected to 127.0.0.1:1234 from QtCreator's menu and got debugging working. QtCreator was run from ordinary user. Thanks to all for the answering! |
|||
|
|
|
As aforementioned you shouldn't run Qt Creator as root, but to give answer to your question you can prevent file from changing owner by setup immutable attribute of file (chattr +i filename). It will prevent any modifications of file! |
|||||||||
|
|
Forcing Probably the best you can do is keep track of what files Of course, as already pointed out, running something like Qt Creator as |
|||||
|

sudo gdbserverhelps. – ASten Feb 12 at 16:14