Announcement

Collapse
No announcement yet.

log in as the root

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

    log in as the root

    When i install ubuntu i could log in to the as the root. i updated to kubuntu and found i couldn't log in as the root. how do i log in as the root so i can edit the menu.lst file?

    #2
    Re: log in as the root

    Hi

    You could use the prefix sudo before running commands that need to be run as root, for example:

    sudo kate /boot/grub/menu.lst

    This will open the file menu.lst, and because of the sudo prefix, give you permission to change and save it.

    You could also use the prefix kdesu. I'm not really sure what the difference is, some say it's safer to use kdesu but I've always used sudo and I haven't run in to any problems.

    If you're extremely keen on actually being root, you could use sudo -s. This will switch the user to root. To switch back, type su YOUR_USERNAME.

    Comment


      #3
      Re: log in as the root

      Always use kdesu when you're going to run a GUI app as root. It's not because "some say" it, but because Ubuntu says you should.

      https://help.ubuntu.com/community/RootSudo
      Jucato's Data Core

      Comment


        #4
        Re: log in as the root

        I thank you very much that worked fine. I was able to edit my menu.lst and save it.

        When i typed
        sudo kate /bootgrub/menu.lst
        password

        i received this message

        X Error: BadDevice, invalid or uninitialized input device 168
        Major opcode: 145
        Minor opcode: 3
        Resource id: 0x0
        Failed to open device
        X Error: BadDevice, invalid or uninitialized input device 168
        Major opcode: 145
        Minor opcode: 3
        Resource id: 0x0
        Failed to open device
        Xlib: connection to ":0.0" refused by server
        Xlib: No protocol specified

        kdeinit: Can't connect to the X Server.
        kdeinit: Might not terminate at end of session.
        Xlib: connection to ":0.0" refused by server
        Xlib: No protocol specified

        kded: cannot connect to X server :0.0
        DCOP aborting call from 'anonymous-20777' to 'kded'
        kded: ERROR: Communication problem with kded, it probably crashed.
        ScimInputContextPlugin()
        Xlib: connection to ":0.0" refused by server
        Xlib: No protocol specified

        Xlib: connection to ":0.0" refused by server
        Xlib: No protocol specified

        Xlib: connection to ":0.0" refused by server
        Xlib: No protocol specified

        knotify: cannot connect to X server :0.0
        DCOP aborting call from 'anonymous-20864' to 'knotify'
        ERROR: Communication problem with knotify, it probably crashed.
        Xlib: connection to ":0.0" refused by server
        Xlib: No protocol specified

        Xlib: connection to ":0.0" refused by server
        Xlib: No protocol specified

        Xlib: connection to ":0.0" refused by server
        Xlib: No protocol specified

        kio_uiserver: cannot connect to X server :0.0
        DCOP aborting call from 'kate-20757' to 'kio_uiserver'
        ERROR: KUniqueApplication: Registering failed!
        ERROR: Communication problem with kio_uiserver, it probably crashed.
        QObject::disconnect: Unexpected null parameter
        ~ScimInputContextPlugin()

        Iwas still able to edit the menu.lst and save it ok
        Is this some thing to do with a network it is trying to connect to or do i have a broken link some where?

        Comment


          #5
          Re: log in as the root

          the right command is
          Code:
          kdesu kate /boot/grub/menu.lst
          the sudo command is only for terminal commands, not for GUI programs (as jucato already told you)

          for example if you edit your file with vi terminal editor, you type
          Code:
          sudo vi /boot/grub/menu.lst

          Comment


            #6
            Re: log in as the root

            Thanks for the replys

            When i typed

            sudo kate /boot/grub/menu.lst

            to edit my menu.lst in a Terminal

            some one replyed that i sould have used a vi Terminal. What is the defference between the Terminal and the vi Terminal?

            Comment


              #7
              Re: log in as the root

              vi is a text editor that runs in a terminal, sorry for my bad explanation

              http://www.techfak.uni-bielefeld.de/...jargon/vi.HTML

              and it's my default text editor

              Comment

              Working...
              X