Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Could not get authorization that is needed for continuing the installation.

Could not get authorization that is needed for continuing the installation.

Scheduled Pinned Locked Moved General and Desktop
installerbughang
14 Posts 4 Posters 7.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Ratzz
    wrote on 7 Oct 2015, 06:00 last edited by Ratzz 10 Jul 2015, 06:06
    #1

    I have created an installer for my project in Ubuntu 10.04 (MinGW compiler) using Qt Installer Framework .
    The installer works fine (/opt path) on my Ubuntu and Ubuntu 11.04 with sudo password or without sudo password directly by double click or using the terminal .
    But if i run the same installer in rhel 6.7 by double click i get an error

    Enter your password to authozize for sudo
    ok cancel.
    

    On clicking OK it pop ups the window

    Error acquring admin rights
    [Sudo] password for user 
    ok
    

    On clicking OK it pop ups one more window .

    could not get authorization.
    Could not get authorization that is needed for continuing the installation.
     Either abort the installation or use the fallback solution by running
    /home/user/Desktop/app--startserver PRODUCTION,{b08aff57-f30b-46f9-91bc-59443e6da1ae},{90cf60e8-8d5e-468c-95bf-ff5e5978c183}
    as root and then clicking OK.
    ok abort
    

    clicking OKhangs and pop ups the message error while elevating access rights ok-->finish
    clicking abort just closes all the error windows.

    If i run the same installer on rhel using terminal the installer installs without problem.
    I have seen the similar errror on Ubuntu 12.04 x86_64 . Is the same bug here ? For MInGW one more error has been reported . remoteclient_p.h code is here . Is there anything to be added on .pro file so that the executable does not ask for password ?

    --Alles ist gut.

    1 Reply Last reply
    0
    • P Offline
      P Offline
      polluxpolaris
      wrote on 20 Oct 2015, 20:41 last edited by
      #2

      I've run into this same problem on Windows 7 while attempting to install to Program Files(x86) without permissions. But I don't think this is a QT bug.

      1 Reply Last reply
      0
      • J Online
        J Online
        jsulm
        Lifetime Qt Champion
        wrote on 21 Oct 2015, 04:37 last edited by
        #3

        As far as I know RHEL does not use sudo by default. What you should do instead is: log in as root calling "su" in the command line and then start the installer.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        R 1 Reply Last reply 21 Oct 2015, 05:23
        0
        • J jsulm
          21 Oct 2015, 04:37

          As far as I know RHEL does not use sudo by default. What you should do instead is: log in as root calling "su" in the command line and then start the installer.

          R Offline
          R Offline
          Ratzz
          wrote on 21 Oct 2015, 05:23 last edited by
          #4

          @jsulm
          In Ubuntu 10.04,11.04 using double click or from the terminal in all users and using root works fine for all paths.
          In rhel using terminal for all users and root user works fine for all path.
          Problem is only with users other than root using double click only for only /opt path. For other path it works fine .

          --Alles ist gut.

          J 1 Reply Last reply 21 Oct 2015, 05:38
          0
          • R Ratzz
            21 Oct 2015, 05:23

            @jsulm
            In Ubuntu 10.04,11.04 using double click or from the terminal in all users and using root works fine for all paths.
            In rhel using terminal for all users and root user works fine for all path.
            Problem is only with users other than root using double click only for only /opt path. For other path it works fine .

            J Online
            J Online
            jsulm
            Lifetime Qt Champion
            wrote on 21 Oct 2015, 05:38 last edited by
            #5

            @Ratzz Normal users are not allowed to write to /opt
            In general, normal users are only allowed to write in their home directory an /tmp
            So, you need to be root if you want to install in /opt.
            If you do call a command with sudo on Ubuntu then you become root during execution of that command, that's why it works with sudo on Ubuntu.
            On RHEL try to call su in a terminal and enter your root password and then call the install app from same terminal.

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            R 1 Reply Last reply 21 Oct 2015, 05:39
            0
            • J jsulm
              21 Oct 2015, 05:38

              @Ratzz Normal users are not allowed to write to /opt
              In general, normal users are only allowed to write in their home directory an /tmp
              So, you need to be root if you want to install in /opt.
              If you do call a command with sudo on Ubuntu then you become root during execution of that command, that's why it works with sudo on Ubuntu.
              On RHEL try to call su in a terminal and enter your root password and then call the install app from same terminal.

              R Offline
              R Offline
              Ratzz
              wrote on 21 Oct 2015, 05:39 last edited by
              #6

              @jsulm said:

              On RHEL try to call su in a terminal and enter your root password and then call the install app from same terminal.

              It works on this case.

              --Alles ist gut.

              J 1 Reply Last reply 21 Oct 2015, 05:39
              0
              • R Ratzz
                21 Oct 2015, 05:39

                @jsulm said:

                On RHEL try to call su in a terminal and enter your root password and then call the install app from same terminal.

                It works on this case.

                J Online
                J Online
                jsulm
                Lifetime Qt Champion
                wrote on 21 Oct 2015, 05:39 last edited by
                #7

                @Ratzz What's the problem then?

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                R 1 Reply Last reply 21 Oct 2015, 05:52
                0
                • J jsulm
                  21 Oct 2015, 05:39

                  @Ratzz What's the problem then?

                  R Offline
                  R Offline
                  Ratzz
                  wrote on 21 Oct 2015, 05:52 last edited by
                  #8

                  @jsulm
                  Problem only when i try to install the installer on double click on /opt path only.

                  --Alles ist gut.

                  JohanSoloJ J 2 Replies Last reply 21 Oct 2015, 05:55
                  0
                  • R Ratzz
                    21 Oct 2015, 05:52

                    @jsulm
                    Problem only when i try to install the installer on double click on /opt path only.

                    JohanSoloJ Offline
                    JohanSoloJ Offline
                    JohanSolo
                    wrote on 21 Oct 2015, 05:55 last edited by
                    #9

                    @Ratzz said:

                    Problem only when i try to install the installer on double click on /opt path only.

                    On linux this is not meant to be done this way... Install scripts are meant to be run from the terminal, using root privileges. Ubuntu tweaks the logic by allowing everyone to prepend a sudo to every possible command, but it by far not the standard way.

                    `They did not know it was impossible, so they did it.'
                    -- Mark Twain

                    1 Reply Last reply
                    0
                    • R Ratzz
                      21 Oct 2015, 05:52

                      @jsulm
                      Problem only when i try to install the installer on double click on /opt path only.

                      J Online
                      J Online
                      jsulm
                      Lifetime Qt Champion
                      wrote on 21 Oct 2015, 06:01 last edited by
                      #10

                      @Ratzz As I already sad before on UNIX/Linux a normal, non root, user is NOT allowed to write to /opt!

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      R 1 Reply Last reply 21 Oct 2015, 06:05
                      0
                      • J jsulm
                        21 Oct 2015, 06:01

                        @Ratzz As I already sad before on UNIX/Linux a normal, non root, user is NOT allowed to write to /opt!

                        R Offline
                        R Offline
                        Ratzz
                        wrote on 21 Oct 2015, 06:05 last edited by
                        #11

                        @jsulm
                        but in ubuntu on double click of installer on /opt path it ask for root password and it installs with root password .
                        But in rhel on double click of installer on /opt path it ask for root password and it installs with root password it gives error as show in original post.

                        --Alles ist gut.

                        JohanSoloJ J 2 Replies Last reply 21 Oct 2015, 06:07
                        0
                        • R Ratzz
                          21 Oct 2015, 06:05

                          @jsulm
                          but in ubuntu on double click of installer on /opt path it ask for root password and it installs with root password .
                          But in rhel on double click of installer on /opt path it ask for root password and it installs with root password it gives error as show in original post.

                          JohanSoloJ Offline
                          JohanSoloJ Offline
                          JohanSolo
                          wrote on 21 Oct 2015, 06:07 last edited by
                          #12

                          @Ratzz said:

                          but in ubuntu on double click of installer on /opt path it ask for root password and it installs with root password .

                          As you were told Ubuntu's not linux. They've tweaked the usual behaviour to allow people to do things without thinking.

                          `They did not know it was impossible, so they did it.'
                          -- Mark Twain

                          1 Reply Last reply
                          0
                          • R Ratzz
                            21 Oct 2015, 06:05

                            @jsulm
                            but in ubuntu on double click of installer on /opt path it ask for root password and it installs with root password .
                            But in rhel on double click of installer on /opt path it ask for root password and it installs with root password it gives error as show in original post.

                            J Online
                            J Online
                            jsulm
                            Lifetime Qt Champion
                            wrote on 21 Oct 2015, 06:10 last edited by
                            #13

                            @Ratzz Is the user you are using member of the group "sudo"? You can check this by typing "groups" in a terminal. At least on Ubuntu a user must be member of "sudo" group to be able to use sudo command.

                            https://forum.qt.io/topic/113070/qt-code-of-conduct

                            R 1 Reply Last reply 21 Oct 2015, 06:14
                            0
                            • J jsulm
                              21 Oct 2015, 06:10

                              @Ratzz Is the user you are using member of the group "sudo"? You can check this by typing "groups" in a terminal. At least on Ubuntu a user must be member of "sudo" group to be able to use sudo command.

                              R Offline
                              R Offline
                              Ratzz
                              wrote on 21 Oct 2015, 06:14 last edited by Ratzz
                              #14

                              @jsulm said:

                              You can check this by typing "groups" in a terminal.

                              it gave me "root"

                              --Alles ist gut.

                              1 Reply Last reply
                              0

                              • Login

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • Users
                              • Groups
                              • Search
                              • Get Qt Extensions
                              • Unsolved