Results 1 to 7 of 7

Thread: How to run a graph user interface program in Konsole with root mode?

  1. #1

    Default How to run a graph user interface program in Konsole with root mode?

    I am used to doing some jobs with root privilege sometimes, so I keep the root privilege with the command line sudo -i in the Konsole, but running some programs with graph user interface in Konsole is always error, what is a correct to do it without entering password so many times?

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,009

    Default Re: How to run a graph user interface program in Konsole with root mode?

    Read https://en.opensuse.org/SDB%3ALogin_as_root
    I assume the kdesu is your friend according to your description.

    Quote Originally Posted by kingspring View Post
    I am used to doing some jobs with root privilege sometimes,
    The "I am used to" above is IMHO a bad argument for doing this.
    Henk van Velden

  3. #3

    Default Re: How to run a graph user interface program in Konsole with root mode?

    many thanks

  4. #4

    Default Re: How to run a graph user interface program in Konsole with root mode?

    No, kdesu claims about could not connect to display if run Konsole with root. It runs only when Konsole are not in root, but it requires password multiple times if more than GUI applications get executed because kdesu forgets the password each time.

  5. #5
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,009

    Default Re: How to run a graph user interface program in Konsole with root mode?

    One mostly uses kdesu from the "execute Command" item of the main menu and does not start aseperate konsole for it.

    How many GUI applications running under root do you need at the same time? For system maintenance you might need YaST (which can be started directly by an end-user from the GUI), File manager in system management mode, also from the main menu. Konsole (root) terminal, idem. Maybe an editor: kdesu kwrite /etc/fstab.

    For most people that is already a dangerous combination of too many root applications open at the same time.

    And how many times do you need one or more of these? Maybe only once a week while doing system maintenamce.

    And of course it asks you for the root password. Not only should you be protected against any people using your open session, but more important, you should be protected against yourself. You should strongly made aware that you are now going to be dangerous to your system.
    Henk van Velden

  6. #6

    Default Re: How to run a graph user interface program in Konsole with root mode?

    Quote Originally Posted by kingspring View Post
    No, kdesu claims about could not connect to display if run Konsole with root. It runs only when Konsole are not in root, but it requires password multiple times if more than GUI applications get executed because kdesu forgets the password each time.
    And how exactly do you "run Konsole with root"?

    If you run Konsole as root, you don't need kdesu any more anyway, you are already root.
    Just running the corresponding command suffices then.

    Btw, do not use "sudo -i" to switch to root, but use "su -" and you will be able to run graphical applications (as root, without sudo or kdesu).
    Or just start "Terminal - Super User Mode" from the application menu, or switch to the "Root Shell" profile in Konsole (both do exactly the same, namely run a root shell with "su -").
    Last edited by wolfi323; 19-Feb-2016 at 16:00.

  7. #7

    Default Re: How to run a graph user interface program in Konsole with root mode?

    Quote Originally Posted by wolfi323 View Post
    And how exactly do you "run Konsole with root"? If you run Konsole as root, you don't need kdesu any more anyway, you are already root. Just running the corresponding command suffices then. Btw, do not use "sudo -i" to switch to root, but use "su -" and you will be able to run graphical applications (as root, without sudo or kdesu). Or just start "Terminal - Super User Mode" from the application menu, or switch to the "Root Shell" profile in Konsole (both do exactly the same, namely run a root shell with "su -").
    This time I have more thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •