Announcement

Collapse
No announcement yet.

kdesudo problem

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

    kdesudo problem

    Hi everybody,

    I'm having a problem in running some graphical apps as root.
    I think the problem is in kdesudo, but I'm not sure.

    When I try to run some applications which ask for user's password, nothing appears after that.
    For example, when I open a "Run Command" dialog through Alt+F2, and type "kdesudo kvpnc", a dialog window appears, asking for my password, and after supply it and press "OK", nothing appears.
    The same occurs with Kate and Dolphin, and when I click in "Edit Software Sources", in KPackageKit.

    Someone may help me, please?

    I'm using the updated Kubuntu 10.04 version and KDE 4.5.1.

    Thanks,

    Kolminux

    #2
    Re: kdesudo problem

    Are you giving it time to process? I just tried kdesudo kate from the Run Dialog (Alt+F2). Was prompted for my password. It took a few seconds - more than five - but Kate launched properly.
    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


      #3
      Re: kdesudo problem

      I tried again, and I'm waiting until now...
      Time doesn't seems to be the problem.

      It used to work, but as I use it rarely, I don't know after which update it broked.

      Additionally, when I try to execute kdesudo at the console, nothing happens again.
      I mean, the prompt comes back and the application doesn't starts.

      And when I use sudo with kate, or another program at the run Dialog (Alt+F2), it starts normally.



      Comment


        #4
        Re: kdesudo problem

        Originally posted by kolminux
        And when I use sudo with kate, or another program at the run Dialog (Alt+F2), it starts normally.
        BAD! VERY BAD! Running any graphical application with sudo is the surest way to bork your /home directory. Likely this might be the cause of your current situation.

        Open a console and check the ownership on all the contents of your /home/user_name directory and sub-directories:
        Code:
        ls -la -R | more
        Review the output, pressing the space bar to continue. With very few exceptions, every directory and file should be owned by you. Short output from my system:
        Code:
        paul@mybrainonlinux:~$ ls -la -R | more
        .:
        total 10660
        drwxr-xr-x 47 paul paul  4096 2010-10-10 10:12 .
        drwxr-xr-x 4 root root  4096 2010-08-01 00:54 ..
        drwx------ 3 paul paul  4096 2010-08-02 21:47 .adobe
        drwx------ 3 paul paul  4096 2010-08-27 19:52 .aqbanking
        -rw-r--r-- 1 paul paul  1236 2010-10-02 17:21 .bash_aliases
        -rw------- 1 paul paul  1612 2010-10-10 10:12 .bash_history
        -rw-r--r-- 1 paul paul   220 2010-08-01 00:54 .bash_logout
        -rw-r--r-- 1 paul paul  3102 2010-08-01 15:43 .bashrc
        drwxr-xr-x 2 paul paul  4096 2010-09-07 13:58 .cache
        If you notice any directories/files that are identified as owned by root root, you might very well have an ownership problem, which is fixable.
        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


          #5
          Re: kdesudo problem

          Thanks Snowhog,

          I've tested and mentioned the use of sudo in graphical apps just to show what's happening, although knowing that it's not recommended, normally I don't use it.

          The output to the "ls -la -R | more" command showed these lines owned by root root. All other are owned by my user:

          drwxr-xr-x 4 root root 4096 2009-09-26 21:04 ..
          -rw------- 1 root root 233 2009-10-30 20:23 .dialdir
          drwxr-xr-x 2 root root 4096 2010-05-30 15:46 .gmb
          drwx------ 3 root root 4096 2010-07-01 11:00 .gnupg
          -rw-r--r-- 1 root root 0 2010-09-15 19:35 icon-cache

          May it be the problem?

          Thanks again!

          Comment


            #6
            Re: kdesudo problem

            If it were me experiencing your problem, I would ensure that I, and not root, was the owner and group member on everything in my /home/user_name directory. To do that, open a console and type:
            Code:
            sudo chown -R username:username /home/username
            where username is your username. This will change the ownership and group to your username throughout your /home/username directory tree. Example:
            Code:
            sudo chown -R paul:paul /home/paul
            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


              #7
              Re: kdesudo problem

              Thanks again Snowhog,

              I did it, but the problem is still there.

              Do you think to be the kdesudo reinstall proccess a way to solve that?

              Comment


                #8
                Re: kdesudo problem

                Open a console and type the command instead. Test it on Kate:
                Code:
                kdesudo kate
                Does Kate launch after you type your password?
                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


                  #9
                  Re: kdesudo problem

                  No, after typing the password, it shows the message below, and the prompt returns.
                  Each program gives a different response:

                  Code:
                  kolm@EG1186342:~$ kdesudo kate
                  Bus::open: Can not get ibus-daemon's address. 
                  IBusInputContext::createInputContext: no connection to ibus-daemon 
                  kolm@EG1186342:~$ 
                  
                  kolm@EG1186342:~$ kdesudo dolphin
                  <unknown program name>(5212)/: Communication problem with "dolphin" , it probably crashed. 
                  Error message was: "org.freedesktop.DBus.Error.ServiceUnknown" : " "The name org.kde.dolphin was not provided by any .service files" " 
                  
                  kolm@EG1186342:~$ kdesudo kvpnc
                  kolm@EG1186342:~$
                  But nothing opens.

                  Comment


                    #10
                    Re: kdesudo problem

                    I'm not sure about kvpnc, but your "error" messages regarding the other two look almost identical to the output I get - except in my case both kate and dolphin launch via kdesudo very quickly. I doubt that's the problem.

                    Have you looked into the /root directory? I'm thinking a trashed root config file (maybe because of a crash?) under /root/.kde

                    Please Read Me

                    Comment


                      #11
                      Re: kdesudo problem

                      Thanks oshunluvr,

                      I experienced this messages in other machine too, but there, the apps opened.

                      But, about the /root directory, which config file exactly need I to look for?

                      PS: I was considering to upgrade Kubuntu to 10.10 as another try to fix it, but the same occurs with the upgrade window. After asking for password, it says that the upgrade was finished, without doing nothing.

                      Comment


                        #12
                        Re: kdesudo problem

                        As another try, I removed the kdesudo package and its config files:

                        Code:
                        sudo apt-get purge kdesudo
                        sudo apt-get install kdesudo
                        But nothing changed.

                        I tried to use GKSU instead, as its already installed, but the same occurs.

                        Someone has another tip?

                        Comment


                          #13
                          Re: kdesudo problem

                          I have nothing to suggest - but have a simple question. What's the difference between using 'sudo' and 'kdesudo' ? Are they equivalent commands?

                          Comment


                            #14
                            Re: kdesudo problem

                            Not exactly - sudo is for the command line and kdesudo is for a GUI program. They have the same primary function of allowing you to execute a command with root privileges, but doing sudo to launch a GUI program is at a minimum problematic and at worst dangerous. sudo by itself is not capable of properly handling the opening and closing of files and the directing of data and files that GUI programs often require. It can leave you unable to launch a program again or sometimes block you ability to log in again.

                            Please Read Me

                            Comment


                              #15
                              Re: kdesudo problem

                              Try deleting (or renaming) the config files for each of those programs under /root/.kde/share/apps

                              Please Read Me

                              Comment

                              Working...
                              X