Announcement

Collapse
No announcement yet.

KDE 4 sudo not working

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

    KDE 4 sudo not working

    I tried to upgrade to 8.04, which crashed back to login when I clicked on the details on installer. So after that I did a fresh install of the remix on 64bit.

    i've kept my home directory but I'm having problems with using some of the apps on kde. I'm trying to fix the screen brightness on my laptop but when I type

    sudo Kate /etc/acpi/video_brightnessup.sh

    Then i get a reply of

    sudo: Kate: command not found

    If I omit the 'sudo' then it boots fine but obviously I can't save a file as i am only a user then.

    Any ideas?

    I've got the broadcom chip working for wireless and i had to use sudo on some of that, I'm thinking that its something to do with kde4, would it be that i was using kde3 on 7.10 and am using the same home directory.

    Thanks

    Mike

    #2
    Re: KDE 4 sudo not working

    It may be a problem with root's path. Try doing
    Code:
    which Kate
    to find the path, then do
    Code:
    sudo /full/path/to/Kate
    and see if that helps. If you use bash as your shell, you can do it in one shot as
    Code:
    sudo `which Kate`
    and it'll do the substitution for you. If these help, then we can fix this by editing your sudoers config file.

    Comment


      #3
      Re: KDE 4 sudo not working

      Originally posted by jlr
      It may be a problem with root's path. Try doing
      Code:
      which Kate
      to find the path, then do
      Code:
      sudo /full/path/to/Kate
      and see if that helps. If you use bash as your shell, you can do it in one shot as
      Code:
      sudo `which Kate`
      and it'll do the substitution for you. If these help, then we can fix this by editing your sudoers config file.
      Thanks for the reply

      first command
      mike@mike-HP-laptop:~$ which kate
      /usr/lib/kde4/bin/kate


      third command
      mike@mike-HP-laptop:~$ sudo 'which kate'
      [sudo] password for mike:
      sudo: which kate: command not found


      second command worked, but got a few errors.

      mike@mike-HP-laptop:~$ sudo /usr/lib/kde4/bin/kate /etc/acpi/video_brightnessup.sh
      Error: "/var/tmp/kdecache-mike" is owned by uid 1000 instead of uid 0.
      Link points to "/var/tmp/kdecache-root"
      kate(7885) KateRendererConfig::setSchemaInternal: Loading template colors 0x7883f0
      kate(7885) KateRendererConfig::setSchemaInternal: Loading template colors 0x7883f0
      kate(7885) KatePartPluginManager::addDocument: KateDocument(0x6cfb80)
      kate(7885) KateSessionManager::KateSessionManager: LOCAL SESSION DIR: "/home/mike/.kde4/share/apps/kate/sessions"
      kate(7885) KateApp::initKate: Setting KATE_PID: ' 7885 '
      Error: "/tmp/kde-mike" is owned by uid 1000 instead of uid 0.
      Link points to "/tmp/kde-root"
      kate(7885) KShortcut::KShortcut: unusable primary shortcut sequence ""
      kate(7885) KateMainWindow::setupMainWindow: HACK:***********************CONNECTING CLICKED***************************
      kate(7885) KToolInvocation::klauncher: klauncher not running... launching kdeinit
      Error: "/tmp/ksocket-mike" is owned by uid 1000 instead of uid 0.
      Creating link /root/.kde4/socket-mike-HP-laptop.
      Created link from "/root/.kde4/socket-mike-HP-laptop" to "/tmp/ksocket-root"
      kdeinit4: Shutting down running client.
      kdeinit4: preparing to launch /usr/lib/kde4/lib/kde4/libexec/klauncher
      kdeinit4: Launched KLauncher, pid = 7901 result = 0
      Error: "/tmp/ksocket-mike" is owned by uid 1000 instead of uid 0.
      Link points to "/tmp/ksocket-root"
      Error: "/tmp/kde-mike" is owned by uid 1000 instead of uid 0.
      Link points to "/tmp/kde-root"
      kdeinit4: opened connection to :0.0
      kdeinit4: preparing to launch /usr/lib/kde4/bin/kded4
      kdeinit4: Launched KDED, pid = 7907 result = 0
      Error: "/var/tmp/kdecache-mike" is owned by uid 1000 instead of uid 0.
      Link points to "/var/tmp/kdecache-root"
      kdeinit4: Got EXT_EXEC '/usr/lib/kde4/bin/kbuildsycoca4' from launcher.
      kdeinit4: preparing to launch /usr/lib/kde4/bin/kbuildsycoca4
      kbuildsycoca4 running...
      Error: "/var/tmp/kdecache-mike" is owned by uid 1000 instead of uid 0.
      Link points to "/var/tmp/kdecache-root"
      kbuildsycoca4(7913) kdemain: Reusing existing ksycoca
      Error: "/tmp/kde-mike" is owned by uid 1000 instead of uid 0.
      Link points to "/tmp/kde-root"
      kbuildsycoca4(7913) KBuildMimeTypeFactory:arseSubclassFile: Now parsing "/usr/share/mime/subclasses"
      kbuildsycoca4(7913) KBuildMimeTypeFactory:arseAliasFile: Now parsing "/usr/share/mime/aliases"
      kbuildsycoca4(7913) KMimeFileParser:arseGlobs: Now parsing "/usr/share/mime/globs"
      kdeinit4: PID 7913 terminated.
      Error: "/var/tmp/kdecache-mike" is owned by uid 1000 instead of uid 0.
      Link points to "/var/tmp/kdecache-root"
      kdeinit4: Got EXEC_NEW 'kconf_update' from launcher.
      kdeinit4: preparing to launch /usr/lib/kde4/lib/kde4/libexec/kconf_update
      kdeinit4: PID 7921 terminated.
      kdeinit4: PID 7907 terminated.
      kate(7885) KateMainWindow::KateMainWindow: ************************************************** ************************** 0x70e0a0
      kate(7885) KShortcut::KShortcut: unusable primary shortcut sequence ""
      kate(7885) KShortcut::KShortcut: unusable primary shortcut sequence ""
      kate(7885) KShortcut::KShortcut: unusable primary shortcut sequence ""
      kate(7885) KatePartPluginManager::addView: KateView(0x9196e0)
      Error: "/tmp/kde-mike" is owned by uid 1000 instead of uid 0.
      Link points to "/tmp/kde-root"
      kate(7885) KateApp::startupKate: KateApplication::init finished successful
      Error: "/tmp/ksocket-mike" is owned by uid 1000 instead of uid 0.
      Link points to "/tmp/ksocket-root"
      kdeinit4: Got EXEC_NEW 'kio_file' from launcher.
      kdeinit4: preparing to launch


      Sorry about the long list, don't know how to put the lists in a shorter form.

      Thanks so far anyway

      Mike

      Once this is working i can then see if i can get the laptop special keys going.

      Comment


        #4
        Re: KDE 4 sudo not working

        When launching Kate (a GUI application) from the command line, the syntax is:
        Code:
        kdesu kate
        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: KDE 4 sudo not working

          Originally posted by Snowhog
          When launching Kate (a GUI application) from the command line, the syntax is:
          Code:
          kdesu kate
          Ahh thanks, is this with non specific kde apps as well. Also I did try 'su' once as well, that asked for my password then told me it was incorrect, which it isn't.

          Thanks anyway, I'm not that good on the command line as I forget most of the commands.

          Mike

          Comment


            #6
            Re: KDE 4 sudo not working

            As a 'rule' when launching from the console an application that you either want to be running as 'root' or that requires 'root' to run, you use kdesu. You use sudo from the console, to execute as root, commands
            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

            Working...
            X