LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do i run Konsole via Root? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-run-konsole-via-root-4175618488/)

Molle 11-27-2017 03:37 PM

How do i run Konsole via Root?
 
How do i run Konsole via Root?

AwesomeMachine 11-27-2017 05:36 PM

open Konsole, type
Code:

$ sudo konsole
and a root konsole will open.

Molle 11-27-2017 08:11 PM

What dos this mean :

Quote:

morten@linux-cgej:~> sudo konsole
[sudo] password for root:
QXcbConnection: Could not connect to display
Aborted
morten@linux-cgej:~>

keefaz 11-27-2017 08:21 PM

While you're in konsole just type su, then use root password.

mrmazda 11-27-2017 10:21 PM

Quote:

Originally Posted by Molle (Post 5785999)
QXcbConnection: Could not connect to display :

A display is a component of an X session. Konsole cannot be run directly from a vtty.

frankbell 11-27-2017 11:00 PM

Quote:

What dos this mean :
Most distros do not share the *buntus' creepy sudo fetish. That is, most distros other than the *buntus do not pre-configure sudo.

They expect you to use su to assume root privileges. If you wish to use sudo, you must configure it yourself using visudo. Unless you are using a *buntu, to use konsole as root, open konsole as user and run su.

Code:

frankbell@orca ~/ $ su
Password:
root@orca frankbell/ $

Afterthought: This was on Slackware. I have customized my .bashrc file because I wanted to know what directory I was in because I got tired of running pwd.

Code:

frankbell@orca ~/ $ cat .bashrc
PS1="\u@\H \W/ \$ "


jamison20000e 11-27-2017 11:18 PM

Quote:

Originally Posted by keefaz (Post 5786002)
While you're in konsole just type su, then use root password.

then type exit or close the app,
Code:

kdesudo
may do to fire-up a gui like Konsole
Code:

adduser morten sudo
...have fun! :hattip:


All times are GMT -5. The time now is 10:01 AM.