Announcement

Collapse
No announcement yet.

Can't run an application with "administrator privileges"

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Can't run an application with "administrator privileges"

    How to get an application running with administrator privileges?

    What I need: running VirtualBox Guest Additions with administrator privileges.
    Context: Kubuntu is the amd64 version, running as a virtualized guest, with the virutal machine set up for ubuntu 64.

    While running Guest Additions directly from the CD file, I got a terminal screen showing the installation process with an error final message being displayed: "This program must be run with administrator privileges. Aborting"

    I already gave my self all the rights and privileges listed in "Systems settings > advanced tab > user management > modify > privileges and groups", and then reboot the machine. But again, I get the same error message over and over, due to the lack of administrator privileges for running the application.

    Did anyone solved this problem or has a clue to overcome it?

    Thanks
    Last edited by Snowhog; May 12, 2013, 02:15 PM.

    #2
    Re: Can't run an application with "administrator privileges"

    run the install command with the prefix sudo

    i.e. sudo guest_additions_installer
    Mark Your Solved Issues [SOLVED]
    (top of thread: thread tools)

    Comment


      #3
      Re: Can't run an application with "administrator privileges"

      The direct answer to your question is: to run an application in Linux with "administrator privileges", you run it as "sudo filename" for a text-based application, and "kdesudo fileneame" for a gui application.

      However, as I recall from VirtualBox, you run the guest additions from inside the guest, not from the host. I could be wrong about this, but as I remember it, if the guest additions exists as an .iso file, you mount that using the Devices tab, and then run it from inside the guest, using whatever fiole manager it uses.. If it's ona cd, you will have to mount the cd in the linux host first (that might be the problem) and then run it from the devices tab.

      How you access "administrator privileges" from inside the guest depends on the guest system.

      We only have to look at ourselves to see how intelligent life might develop into something we wouldn't want to meet. -- Stephen Hawking

      Comment


        #4
        Re: Can't run an application with "administrator privileges"

        sudo sh /path_to_your_cdrom/VBoxLinux...
        Once your problem is solved please mark the topic of the first post as SOLVED so others know and can benefit from your experience! / FAQ

        Comment


          #5
          Re: Can't run an application with "administrator privileges"

          Thanks to both but:

          Context: Kubuntu is the amd64 version running as guest under a Windows host.
          I requested Vbox to install guest additions, after kubuntu being loaded and running.
          It did mount the iso file as cdrom0, but nothing was installed, as I could not set the VBoxś machine default small squared screen to full display the kubuntu screen.

          I opened the iso on cdrom0 and clicked on the VboxLinuxAdditions-amd64.run file and got the error message regarding my lack of privileges to run the file,

          Them I increased my privileges to administer to system. did the same as before and got the same error.

          Finally, I fired up the Konsole and did


          First:

          meanpt@meanpt:~$ su root
          Password:
          root@meanpt:/home/meanpt# cd /media/cdrom
          root@meanpt:/media/cdrom# ./VboxLinuxAdditions-amd64.run
          bash: ./VboxLinuxAdditions-amd64.run: No such file or directory

          Changed to cdrom0

          root@meanpt:/media/cdrom# cd /media/cdrom0
          root@meanpt:/media/cdrom0# ./VboxLinuxAdditions-amd64.run
          bash: ./VboxLinuxAdditions-amd64.run: No such file or directory

          And even tried to run another program from the iso:

          root@meanpt:/media/cdrom0# ./VboxLinuxAdditions-x86.run
          bash: ./VboxLinuxAdditions-x86.run: No such file or directory

          Finally I listed the files in cdrom0

          root@meanpt:/media/cdrom0# ls
          32Bit VBoxLinuxAdditions-amd64.run VBoxWindowsAdditions.exe
          64Bit VBoxLinuxAdditions-x86.run VBoxWindowsAdditions-x86.exe
          AUTORUN.INF VBoxSolarisAdditions.pkg
          autorun.sh VBoxWindowsAdditions-amd64.exe

          And tried the sudo command:

          root@meanpt:/media/cdrom0# sudo VboxLinuxAdditions.64.run
          sudo: VboxLinuxAdditions.64.run: command not found



          I confess I'm becoming really confused

          To recap:

          The iso is mounted as cdrom0
          Increasing the privileges did not change the privileges

          and, as a root user:

          The command is executed but the file is not found

          By the way,
          The volume label or name, as listed in dolphin, is "VBOXADDITIONS_3." - can this be used and is it useful?

          Again. many regards

          Comment


            #6
            Re: Can't run an application with "administrator privileges"

            Originally posted by meanpt
            And tried the sudo command:

            root@meanpt:/media/cdrom0# sudo VboxLinuxAdditions.64.run
            sudo: VboxLinuxAdditions.64.run: command not found
            Code:
            sudo sh /media/cdrom0/VBoxLinuxAdditions.64.run
            should do it. Worked for my kubuntu client on VirtualBox on an ArchLinux host. Haven't tried the ./ variant though...
            Once your problem is solved please mark the topic of the first post as SOLVED so others know and can benefit from your experience! / FAQ

            Comment


              #7
              Re: Can't run an application with "administrator privileges"



              Toad, a special thanks, it's done

              To all, many thanks 8)

              root@meanpt:/media/cdrom0# sudo sh /media/cdrom0/VBoxLinuxAdditions-amd64.run
              Verifying archive integrity... All good.
              Uncompressing VirtualBox 3.0.12 Guest Additions for Linux installation...
              VirtualBox 3.0.12 Guest Additions installation
              Building the VirtualBox Guest Additions kernel module...
              Building the shared folder support kernel module...
              Building the drm support kernel module...
              Installing the VirtualBox Guest Additions...

              Successfully installed the VirtualBox Guest Additions.
              You must restart your guest system in order to complete the installation.
              root@meanpt:/media/cdrom0#


              Again, many thanks to all.
              Hope kubuntu team can improve the click and run features for installing applications other than those in the the repository.

              Comment


                #8
                Re: Can't run an application with "administrator privileges"

                Glad you got it sorted

                But there should never, ever be a click and run situation in Linux! God beware of the M$ world and its pitfalls. And click and run is one step further to the doom of not knowing what your box is up to...
                Once your problem is solved please mark the topic of the first post as SOLVED so others know and can benefit from your experience! / FAQ

                Comment


                  #9
                  Re: [Solved] Can't run an application with "administrator privileges"

                  Toad, I' m finally reading you in full screen mode. And like it. The next task will be to access a VBox Windows' shared folder ... it is created but ... it's tricky

                  Well, regarding the click and install it, I know this is a nightmare for IT people regarding their department customers but, for people like me, home users, it means freedom, as "freedom in Linux"

                  Comment


                    #10
                    Re: [Solved] Can't run an application with "administrator privileges"

                    And freedom as in viruses, bloated systems, runaway processes - ah, as in M$

                    Whatever, we could continue for the next ten thousand years... Anyway, enjoy.

                    And btw, I have nothing to do with computing - just a humble translator who needs a tool he can rely on
                    Once your problem is solved please mark the topic of the first post as SOLVED so others know and can benefit from your experience! / FAQ

                    Comment


                      #11
                      Re: [Solved] Can't run an application with "administrator privileges"

                      oh. btw, I managed to read and write a shared folder with my Windows host. Now, it rocks,
                      ... and I know what you mean but ... well ,,,

                      Comment


                        #12
                        Re: [Solved] Can't run an application with "administrator privileges"

                        i prefer my windows installs in the virtual machine.. far away from my OS , glad to see you got it working
                        Mark Your Solved Issues [SOLVED]
                        (top of thread: thread tools)

                        Comment


                          #13
                          Re: [Solved] Can't run an application with "administrator privileges"

                          Originally posted by sithlord48
                          windows...in...virtual machine..
                          "Bill-in-a-Box" as it is called. Safely contained. Easily accessed. In this way, the only 'virus' that one can run without fear of contamination!
                          Windows no longer obstructs my view.
                          Using Kubuntu Linux since March 23, 2007.
                          "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                          Comment


                            #14
                            Re: [Solved] Can't run an application with "administrator privileges"

                            Originally posted by sithlord48
                            i prefer my windows installs in the virtual machine.. far away from my OS , glad to see you got it working
                            ... well ... I'm a Windows user, and can't run some 3D software or even some music samplers in a Virtual machine, as I only have 2 Gb of ram in my laptop and I do need all of it to play with my toys. But for sure I've not been "infected" for more than a year. Did not install more anti-virus of whatever kind. Rather I started using sandboxie and returnil. But those have a problem: either one can't or is troublesome to test applications that need rebooting. Hence the use of virtual machines to help. I do have a windows 7 starter virtual machine for that. And if needed, I can have a 30 day trial of almost any version of windows 7, anytime I need it. Then, being curious and wishing to have a try, I bought a mag with a cd full of linux distros, tried them all and I'm still learning it. One thing is sure for me: I do not want to go back to the dark ages of computing with command lines. I went already through the good old spectrum, the assle of apple IIe, and first DOS PC's. It's over. I do not wish to go back again and I'm still going observing the linux evolution to jump to the first that will provide a better memory management as one could get with the mac book some 4 years ago (I do know owners of 512k ram machines with so many heavy stuff running without a crash, that I suspected they were running a 3 Gb machine), as well as to the one that will provide a complete graphical command system. It will be up to the user if they want to use the graphical interface or to refuse it and use the native commands in a command console. This is freedom, as free in Linux. If Wiindows were not so graphical, I suspect I could not be here, in this forum learning and trying. 8)

                            Comment

                            Working...
                            X