Systemd and kdesu problem [Solved]

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

Systemd and kdesu problem [Solved]

Postby akrep55tr » Sun Oct 20, 2013 11:50

When I use systemd "kdesu dolphin" command asks for password promt but wont open dolphin and the terminal output:
Code: Select all
kdesu dolphin
kdesu(5301)/kdesu (kdelibs) KDESu::KDESuPrivate::KCookie::getXCookie: No X authentication info set for display ":0"
kdesu(5301)/kdesu (kdelibs) KDESu::PtyProcess::exec: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/process.cpp : 293 ]  Running "/bin/su"
kdesu(5301)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/su.cpp : 259 ]  Read line "Password: "
kdesu(5301)/kdesu (kdelibs) KDESu::KDESuPrivate::KCookie::getXCookie: No X authentication info set for display ":0"
kdesu(5301)/kdesu (kdelibs) KDESu::PtyProcess::exec: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/process.cpp : 293 ]  Running "/bin/su"
kdesu(5301)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/su.cpp : 259 ]  Read line "Password: "
kdesu(5301)/kdesu (kdelibs) KDESu::PtyProcess::WaitSlave: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/process.cpp : 379 ]  Child pid 5576
kdesu(5301)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/su.cpp : 259 ]  Read line ""
kdesu(5301)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/su.cpp : 259 ]  Read line "kdesu_stub"
kdesu(5301)/kdesu (kdelibs) KDESu::KDESuPrivate::KCookie::getXCookie: No X authentication info set for display ":0"
kdesu(5301)/kdesu (kdelibs) KDESu::PtyProcess::exec: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/process.cpp : 293 ]  Running "/bin/su"
kdesu(5301)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/su.cpp : 259 ]  Read line "Password: "
kdesu(5301)/kdesu (kdelibs) KDESu::PtyProcess::WaitSlave: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/process.cpp : 379 ]  Child pid 5634
kdesu(5301)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/su.cpp : 259 ]  Read line ""
kdesu(5301)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/su.cpp : 259 ]  Read line "kdesu_stub"


When I use sysvinit "kdesu dolphin" command asks for password, works normal and opens dolphin and the terminal output:
Code: Select all
kdesu dolphin
kdesu(9129)/kdesu (kdelibs) KDESu::PtyProcess::exec: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/process.cpp : 293 ]  Running "/bin/su"
kdesu(9129)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/su.cpp : 259 ]  Read line "Password: "
kdesu(9129)/kdesu (kdelibs) KDESu::PtyProcess::exec: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/process.cpp : 293 ]  Running "/bin/su"
kdesu(9129)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/su.cpp : 259 ]  Read line "Password: "
kdesu(9129)/kdesu (kdelibs) KDESu::PtyProcess::WaitSlave: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/process.cpp : 379 ]  Child pid 9354
kdesu(9129)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/su.cpp : 259 ]  Read line ""
kdesu(9129)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/su.cpp : 259 ]  Read line "kdesu_stub"
kdesu(9129)/kdesu (kdelibs) KDESu::PtyProcess::exec: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/process.cpp : 293 ]  Running "/bin/su"
kdesu(9129)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/su.cpp : 259 ]  Read line "Password: "
kdesu(9129)/kdesu (kdelibs) KDESu::PtyProcess::WaitSlave: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/process.cpp : 379 ]  Child pid 9362
kdesu(9129)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/su.cpp : 259 ]  Read line ""
kdesu(9129)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/su.cpp : 259 ]  Read line "kdesu_stub"
Last edited by akrep55tr on Sun Nov 10, 2013 17:16, edited 1 time in total.
akrep55tr
Young Hen
 
Posts: 32
Joined: Mon Oct 05, 2009 19:14

Re: Systemd and kdesu problem

Postby Fitzcarraldo » Sun Oct 20, 2013 14:40

The first error looks to me to be the crux of your problem:

Code: Select all
kdesu(5301)/kdesu (kdelibs) KDESu::KDESuPrivate::KCookie::getXCookie: No X authentication info set for display ":0"

Have you tried the solution given on the following Web page?:

How to fix gksu / kdesudo? kdesudo(2831) KDESu::KDESuPrivate::KCookie::getXCookie: No X authentication info set for display “:0”.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 8032
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Systemd and kdesu problem

Postby akrep55tr » Sun Oct 20, 2013 15:45

Thank you for your post, but it didnot work.
I think the problem is related to systemd. Because in sysvinit the command works without any problem.
akrep55tr
Young Hen
 
Posts: 32
Joined: Mon Oct 05, 2009 19:14

Re: Systemd and kdesu problem

Postby Fitzcarraldo » Sun Oct 20, 2013 16:45

What happens if you enter the following command in a Konsole window?:

Code: Select all
$ kdesu -c "bash -l -c dolphin"
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 8032
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Systemd and kdesu problem

Postby akrep55tr » Sun Oct 20, 2013 17:20

No change. It asks for password ,after I entered password nothing happens.No dolphin window.
Code: Select all
[email protected] ~ $ kdesu -c "bash -l -c dolphin"
kdesu(11427)/kdesu (kdelibs) KDESu::KDESuPrivate::KCookie::getXCookie: No X authentication info set for display ":0"
kdesu(11427)/kdesu (kdelibs) KDESu::PtyProcess::exec: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/process.cpp : 293 ]  Running "/bin/su"
kdesu(11427)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/su.cpp : 259 ]  Read line "Password: "
kdesu(11427)/kdesu (kdelibs) KDESu::KDESuPrivate::KCookie::getXCookie: No X authentication info set for display ":0"
kdesu(11427)/kdesu (kdelibs) KDESu::PtyProcess::exec: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/process.cpp : 293 ]  Running "/bin/su"
kdesu(11427)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/su.cpp : 259 ]  Read line "Password: "
kdesu(11427)/kdesu (kdelibs) KDESu::PtyProcess::WaitSlave: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/process.cpp : 379 ]  Child pid 11831
kdesu(11427)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/su.cpp : 259 ]  Read line ""
kdesu(11427)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/su.cpp : 259 ]  Read line "kdesu_stub"
kdesu(11427)/kdesu (kdelibs) KDESu::KDESuPrivate::KCookie::getXCookie: No X authentication info set for display ":0"
kdesu(11427)/kdesu (kdelibs) KDESu::PtyProcess::exec: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/process.cpp : 293 ]  Running "/bin/su"
kdesu(11427)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/su.cpp : 259 ]  Read line "Password: "
kdesu(11427)/kdesu (kdelibs) KDESu::PtyProcess::WaitSlave: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/process.cpp : 379 ]  Child pid 11835
kdesu(11427)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/su.cpp : 259 ]  Read line ""
kdesu(11427)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/su.cpp : 259 ]  Read line "kdesu_stub"
akrep55tr
Young Hen
 
Posts: 32
Joined: Mon Oct 05, 2009 19:14

Re: Systemd and kdesu problem

Postby Fitzcarraldo » Mon Oct 21, 2013 11:04

What happens if you enter the following command in a Konsole window?:

Code: Select all
xhost +;kdesu dbus-launch dolphin
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 8032
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Systemd and kdesu problem

Postby akrep55tr » Mon Oct 21, 2013 16:08

Fitzcarraldo wrote:What happens if you enter the following command in a Konsole window?:

Code: Select all
xhost +;kdesu dbus-launch dolphin


It worked.Thank you. So what is the problem and is it related to systemd?
Code: Select all
xhost +;kdesu dbus-launch dolphin
access control disabled, clients can connect from any host
kdesu(14146)/kdesu (kdelibs) KDESu::KDESuPrivate::KCookie::getXCookie: No X authentication info set for display ":0"
kdesu(14146)/kdesu (kdelibs) KDESu::PtyProcess::exec: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/process.cpp : 293 ]  Running "/bin/su"
kdesu(14146)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/su.cpp : 259 ]  Read line "Password: "
kdesu(14146)/kdesu (kdelibs) KDESu::KDESuPrivate::KCookie::getXCookie: No X authentication info set for display ":0"
kdesu(14146)/kdesu (kdelibs) KDESu::PtyProcess::exec: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/process.cpp : 293 ]  Running "/bin/su"
kdesu(14146)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/su.cpp : 259 ]  Read line "Password: "
kdesu(14146)/kdesu (kdelibs) KDESu::PtyProcess::WaitSlave: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/process.cpp : 379 ]  Child pid 14375
kdesu(14146)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/su.cpp : 259 ]  Read line ""
kdesu(14146)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/su.cpp : 259 ]  Read line "kdesu_stub"
kdesu(14146)/kdesu (kdelibs) KDESu::KDESuPrivate::KCookie::getXCookie: No X authentication info set for display ":0"
kdesu(14146)/kdesu (kdelibs) KDESu::PtyProcess::exec: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/process.cpp : 293 ]  Running "/bin/su"
kdesu(14146)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/su.cpp : 259 ]  Read line "Password: "
kdesu(14146)/kdesu (kdelibs) KDESu::PtyProcess::WaitSlave: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/process.cpp : 379 ]  Child pid 14386
kdesu(14146)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/su.cpp : 259 ]  Read line ""
kdesu(14146)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdesu/su.cpp : 259 ]  Read line "kdesu_stub"
akrep55tr
Young Hen
 
Posts: 32
Joined: Mon Oct 05, 2009 19:14

Re: Systemd and kdesu problem

Postby Fitzcarraldo » Mon Oct 21, 2013 18:54

I use OpenRC rather than systemd, but I doubt the problem is due to systemd per se. I suspect it's due to the way SL has been configured, as I assume the 'kdesu dolphin' command works in other distributions that use systemd (such as Fedora or Arch).

The 'xhost +' command allows all users to make connections to the currently-running X Server (as your error message indicates that the root user or kdesu does not have permission to connect to the running X Server). The command 'dbus-launch' is because a D-Bus daemon is apparently not running as root user (which could be a configuration issue in SL). Maybe if a SL developer with systemd experience reads this he would be able to shed some light on it. You might want to file a bug report.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 8032
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Systemd and kdesu problem

Postby akrep55tr » Mon Oct 21, 2013 20:29

Thank you very much. I will file a bug report as soon as possible.
akrep55tr
Young Hen
 
Posts: 32
Joined: Mon Oct 05, 2009 19:14

Re: Systemd and kdesu problem

Postby linuxfluesterer » Tue Oct 22, 2013 11:08

Hallo...
Exactly, I can't confirm, that there is a bug about it. I'm using KDE 4.11.2 Kernel 3.11.4 and systemd with last upgrade today (Sabayon 13.11, 64bit). When I start in a user konsole:
Code: Select all
kdesu dolphin
then I receive this:
Code: Select all
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 14: reading configurations from ~/.fonts.conf is deprecated.
"KConfigIni: In file /home/linuxfluesterer/.kde4/share/icons/DB Silver Icons/index.theme, line 31: " Invalid entry (missing '=')
kdesu(12070)/kdesu (kdelibs) KDESu::PtyProcess::exec: [ /var/tmp/portage/kde-base/kdelibs-4.11.2-r1/work/kdelibs-4.11.2/kdesu/process.cpp : 293 ]  Running "/bin/su"
kdesu(12070)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /var/tmp/portage/kde-base/kdelibs-4.11.2-r1/work/kdelibs-4.11.2/kdesu/su.cpp : 259 ]  Read line "Password: "
kdesu(12070)/kdesu (kdelibs) KDESu::PtyProcess::exec: [ /var/tmp/portage/kde-base/kdelibs-4.11.2-r1/work/kdelibs-4.11.2/kdesu/process.cpp : 293 ]  Running "/bin/su"
kdesu(12070)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /var/tmp/portage/kde-base/kdelibs-4.11.2-r1/work/kdelibs-4.11.2/kdesu/su.cpp : 259 ]  Read line "Password: "
kdesu(12070)/kdesu (kdelibs) KDESu::PtyProcess::WaitSlave: [ /var/tmp/portage/kde-base/kdelibs-4.11.2-r1/work/kdelibs-4.11.2/kdesu/process.cpp : 379 ]  Child pid 12173
kdesu(12070)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /var/tmp/portage/kde-base/kdelibs-4.11.2-r1/work/kdelibs-4.11.2/kdesu/su.cpp : 259 ]  Read line ""
kdesu(12070)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /var/tmp/portage/kde-base/kdelibs-4.11.2-r1/work/kdelibs-4.11.2/kdesu/su.cpp : 259 ]  Read line "kdesu_stub"
kdesu(12070)/kdesu (kdelibs) KDESu::PtyProcess::exec: [ /var/tmp/portage/kde-base/kdelibs-4.11.2-r1/work/kdelibs-4.11.2/kdesu/process.cpp : 293 ]  Running "/bin/su"
kdesu(12070)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /var/tmp/portage/kde-base/kdelibs-4.11.2-r1/work/kdelibs-4.11.2/kdesu/su.cpp : 259 ]  Read line "Password: "
kdesu(12070)/kdesu (kdelibs) KDESu::PtyProcess::WaitSlave: [ /var/tmp/portage/kde-base/kdelibs-4.11.2-r1/work/kdelibs-4.11.2/kdesu/process.cpp : 379 ]  Child pid 12178
kdesu(12070)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /var/tmp/portage/kde-base/kdelibs-4.11.2-r1/work/kdelibs-4.11.2/kdesu/su.cpp : 259 ]  Read line ""
kdesu(12070)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /var/tmp/portage/kde-base/kdelibs-4.11.2-r1/work/kdelibs-4.11.2/kdesu/su.cpp : 259 ]  Read line "kdesu_stub"

(Don't care about DB Silver Icons error , it's a Dolphin theme). My Dolphin itself opens and I am root.

-Linuxfluesterer (I love KDE ...)
Take away Facebook from me and let there be real people again...
User avatar
linuxfluesterer
Old Dear Hen
 
Posts: 753
Joined: Thu Sep 20, 2012 19:47
Location: Germany

Next

Return to Beginners|Newbies Area

Who is online

Users browsing this forum: No registered users and 2 guests

cron