You are not logged in.

#1 2009-01-28 20:59:26

cool_arrow
Member
Registered: 2009-01-21
Posts: 27

[solved]edit file as root in kde 4.2 - how do I do it?

Just installed kde 4.2 (no previous kde installation).  I want to edit a file as root and I typed the following from the command line:

bash-3.2# kwrite /etc/X11/xorg.conf
and got the following error:

kdeinit4: preparing to launch /usr/lib/kde4/libexec/klauncher
klauncher(5454) kdemain: No DBUS session-bus found. Check if you have started the DBUS server.
kdeinit4: Communication error with launcher. Exiting!

Can someone tell me how to fix it?  Thanks.

Last edited by cool_arrow (2009-01-29 16:11:46)

Offline

#2 2009-01-28 21:46:40

zyghom
Member
From: Poland/currently Africa
Registered: 2006-05-11
Posts: 432
Website

Re: [solved]edit file as root in kde 4.2 - how do I do it?

hal/dbus working ?


Zygfryd Homonto

Offline

#3 2009-01-28 23:15:13

Wintervenom
Member
Registered: 2008-08-20
Posts: 1,011

Re: [solved]edit file as root in kde 4.2 - how do I do it?

cool_arrow wrote:

Just installed kde 4.2 (no previous kde installation).  I want to edit a file as root and I typed the following from the command line:

bash-3.2# kwrite /etc/X11/xorg.conf
and got the following error:

kdeinit4: preparing to launch /usr/lib/kde4/libexec/klauncher
klauncher(5454) kdemain: No DBUS session-bus found. Check if you have started the DBUS server.
kdeinit4: Communication error with launcher. Exiting!

Can someone tell me how to fix it?  Thanks.

Try kdesu kwrite as a normal user.

Last edited by Wintervenom (2009-01-28 23:15:51)

Offline

#4 2009-01-29 00:55:00

cool_arrow
Member
Registered: 2009-01-21
Posts: 27

Re: [solved]edit file as root in kde 4.2 - how do I do it?

zyghom:  I think hal is working. When installing I put it in the daemons section in /etc/rc.conf .  Also using system monitor I see the following:
dbus-daemon       user name=steve (mine)
dbus-daemon       user name=root
dbus-launch         user name=steve
dbus-launch         user name=root
hald                     user name=hal
hald-addon-acpi   user name=hal
hald-addon-inpu   user name=root
(many hald-addon-stor processes running as well)

Wintervenom:  using "kdesu kwrite" does work.  Curious as to why I can't do it as root from command line though.  Thanks.

Offline

#5 2009-01-29 10:12:40

GERGE
Member
From: Turkey
Registered: 2008-09-29
Posts: 157
Website

Re: [solved]edit file as root in kde 4.2 - how do I do it?

Offline

#6 2009-01-29 12:52:54

Mikko777
Member
From: Suomi, Finland
Registered: 2006-10-30
Posts: 837

Re: [solved]edit file as root in kde 4.2 - how do I do it?

kdemod has that on by default.

Offline

#7 2009-01-29 16:14:38

cool_arrow
Member
Registered: 2009-01-21
Posts: 27

Re: [solved]edit file as root in kde 4.2 - how do I do it?

It turned out to be something dumb that I did in rc.conf.  I believe that I had dbus in the module section.  Anyhow, after looking at some other rc.conf files on this forum I made some changes and I can now edit file as root without the kdesu command.

Offline

#8 2009-01-29 16:22:03

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,549

Re: [solved]edit file as root in kde 4.2 - how do I do it?

Specifically? It may help others.

Offline

#9 2009-04-15 16:17:04

alleluia20
Member
Registered: 2009-04-13
Posts: 53

Re: [solved]edit file as root in kde 4.2 - how do I do it?

I discovered a workaround by chance. You make "xhost +" as user, then you su to root by "su -", and launch kwrite. It will take a few seconds.

After that, you can just su (without the following dash) and launch kwrite (after having done "xhost +" as user).

By the way, why don't we have "sux" in the Arch packages? It allows you to su and use the user's X, but the permissions are not so generous as with "xhost +".

Offline

#10 2009-04-15 16:41:56

Solid1986Snake
Member
Registered: 2007-06-18
Posts: 258

Re: [solved]edit file as root in kde 4.2 - how do I do it?

@alleluia: sux is in aur...

Offline

#11 2009-04-15 17:27:56

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: [solved]edit file as root in kde 4.2 - how do I do it?

Perhaps someone has an answer to ...enable-run-as-root...for the kde4 system not having any users but just root?


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

Board footer

Powered by FluxBB