Results 1 to 7 of 7

Thread: [S]Privileges/Permissions problems after running Qt Creator with priviliges on Linux

  1. #1
    Join Date
    Oct 2011
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default [S]Privileges/Permissions problems after running Qt Creator with priviliges on Linux

    Hello,
    I've runned Qt Creator with root rights and now it gives me Permissions errors on 2 files when I run Qt without priviliges.
    On run:
    1: "Cannot overwrite file [my home dir]/.config/Nokia/qtversion.xml: Permission denied" - 4 times appeared this error

    On exit:
    1: "Cannot overwrite file [my home dir]/.config/Nokia/toolChains.xml: Permission denied"

    Ok, solved the problem myself
    went into the folder:
    "cd ~/.config/Nokia"
    then changed the mode for this 2 files:
    1. "sudo -s"
    2. "chmod g+w qtversion.xml"
    (I tried chmod +w for both files and didn't worked, sometimes u have to indicate if it's user, group or other)
    3. "chmod o+w qtversion.xml"
    u can try "chmod go+w qtversion.xml" so u don't have to write 2 times - I didn't tried
    4. "chmod o+w toolChains.xml"
    5. "chmod +r qtversion.xml" (same here, u may try "chmod go+rw qtversion.xml" - I didn't tried)
    6. "exit"

    That's it.

    Edit:
    1 more:
    "Cannot overwrite file [my home dir]/.config/Nokia/qtcreator/default.qws: Permission denied"

    The solution:
    "sudo -s chmod o+w ~/.config/Nokia/qtcreator/default.qws"
    Last edited by Alliancemd; 27th October 2011 at 18:58.

  2. #2
    Join Date
    Jan 2012
    Posts
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Symbian S60

    Default Re: [S]Privileges/Permissions problems after running Qt Creator with priviliges on Li

    This issue can not be solved only by using "chmod" command because you need to change the "~/.config/Nokia/" folder's user and group name.
    By default it is assigned to root group and user, I meant that you also have to use two other commands, which are: "chgrp" and "chown"

    so the steps to solve this problem are:
    1.cd ~/.config/
    2.sudo -s
    3.chmod ugo+rwx Nokia (it will add read, write and execute premission to everyone)
    4.chown root [your username] Nokia (example: chown root alex Nokia)
    5.chgrp root [your groupname] Nokia (example: chgrp root alex Nokia)

    Note: by default you can write your group-name as your user-name.

  3. #3
    Join Date
    Aug 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: [S]Privileges/Permissions problems after running Qt Creator with priviliges on Li




    I'm not sure if the above 2 posts helped you to solve this problem. I encountered this but neither of the posts helped me. I asked around in the #ubuntu irc channel and the user timfrost suggested executing the following command :

    find ~/.config/Nokia -print0 | sudo xargs -0 chown $USER

    This worked like a piece of cake. Hope this helps for future viewers of the forum as well.

    Cheers!

  4. #4
    Join Date
    Jul 2011
    Location
    BRAZIL-RIO DE JANEIRO
    Posts
    47
    Thanks
    33
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: [S]Privileges/Permissions problems after running Qt Creator with priviliges on Li

    I tryed all these sugestions, but no one fixed the problem.

    +++

  5. #5
    Join Date
    Nov 2013
    Posts
    1
    Qt products
    Qt5
    Platforms
    Unix/X11 Android

    Default Re: [S]Privileges/Permissions problems after running Qt Creator with priviliges on Li

    Quote Originally Posted by kjp_1212 View Post


    I'm not sure if the above 2 posts helped you to solve this problem. I encountered this but neither of the posts helped me. I asked around in the #ubuntu irc channel and the user timfrost suggested executing the following command :

    find ~/.config/Nokia -print0 | sudo xargs -0 chown $USER

    This worked like a piece of cake. Hope this helps for future viewers of the forum as well.

    Cheers!


    ---------------


    chown -R $USER directory

    Would do the same.

  6. #6
    Join Date
    Nov 2008
    Posts
    180
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: [S]Privileges/Permissions problems after running Qt Creator with priviliges on Li

    Not one of these tricks is working on Ubuntu 12.4.5 with the latest creator. I changed owner down my entire directory tree. While that fixed the error window, it __still__ loses all settings each and every time I start it. My editor config, recent file list, everything.

    There is some file outside of the user directory where it is writing.

    I should note that I installed from the _run file so all of Qt is under my user directory. We no longer have to build as root for this project so I am starting with a different shell script, but not much different.

    ====
    cd /home/developer/Qt5.4.2/Tools/QtCreator/bin
    ./qtcreator.sh
    ====

  7. #7
    Join Date
    Jan 2020
    Posts
    1
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Thumbs up Re: [S]Privileges/Permissions problems after running Qt Creator with priviliges on Li

    Quote Originally Posted by kjp_1212 View Post


    I'm not sure if the above 2 posts helped you to solve this problem. I encountered this but neither of the posts helped me. I asked around in the #ubuntu irc channel and the user timfrost suggested executing the following command :

    find ~/.config/Nokia -print0 | sudo xargs -0 chown $USER

    This worked like a piece of cake. Hope this helps for future viewers of the forum as well.

    Cheers!


    This worked.
    Thanks

Similar Threads

  1. Running app from within Creator
    By rbp in forum Qt Tools
    Replies: 2
    Last Post: 2nd October 2009, 01:51
  2. Running Qt Creator examples
    By Saman in forum Newbie
    Replies: 5
    Last Post: 5th May 2009, 21:21
  3. Running an application with root privileges at Linux
    By prykHetQuo in forum Qt Programming
    Replies: 5
    Last Post: 25th January 2009, 13:35
  4. Installing and running Qt4 without root privileges
    By sunil.thaha in forum Installation and Deployment
    Replies: 1
    Last Post: 10th October 2007, 15:04
  5. root-priviliges in application
    By bkv in forum KDE Forum
    Replies: 2
    Last Post: 29th October 2006, 19:58

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.