Ask Your Question
0

Using kate editor as root (su) give me errors.

asked 2013-02-26 07:30:00 -0500

abracadabra gravatar image

Hi guys. After installing kate i can use it to open files as normal user, but when i enter in su suer mode (with su and then password) i cant use kate. Give me errors:

[root@localhost user]# kate /etc/yum.cong

kate(3117)/kdeui (kdelibs): Session bus not found To circumvent this problem try the following command (with Linux and bash) export $(dbus-launch) KCrash: Application 'kate' crashing... KCrash: Attempting to start /usr/libexec/kde4/drkonqi from kdeinit sockfile=/root/.kde/socket-localhost.localdomain/kdeinit4_0 Warning: connect() failed: : No such file or directory KCrash: Attempting to start /usr/libexec/kde4/drkonqi directly drkonqi(3118)/kdeui (kdelibs): Session bus not found To circumvent this problem try the following command (with Linux and bash) export $(dbus-launch)

Thank you.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2013-02-26 07:55:07 -0500

ryanlerch gravatar image

updated 2013-02-26 07:56:27 -0500

You are encountering these errors because you are running just

su

You need to switch to root using the command

su -

The extra hyphen tells su to start a login shell with the privileges of the target user (in this case, root). For more information about su, the Wikipedia page has a nice brief overview - http://en.wikipedia.org/wiki/Su_(Unix)

edit flag offensive delete link more

Comments

Yeah thats works. Thank you. and i have one question about su user. What you think is better.Add my account to sudo group (or root group). Or just leave like this and when need use the su options? Because i have one account in fedora with no admin rights. And always need use this root password for install something etc.

abracadabra gravatar imageabracadabra ( 2013-02-26 08:24:42 -0500 )edit

It really a personal preference. Here is a question that covers a few of the details (there are links to other good questions on there too): https://ask.fedoraproject.org/question/9455/what-does-it-mean-for-the-root-account-to-be-disabled-in-fedora-18/#15079

ryanlerch gravatar imageryanlerch ( 2013-02-26 09:09:57 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-02-26 07:30:00 -0500

Seen: 962 times

Last updated: Feb 26 '13