Konq & Launching Progs as Root
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 . Running Suse8 with all current updates. It has always been my practice to run as a user, and to invoke Konq & Konsole in superuser mode when I need them thus. But with Suse8 I can no longer (as a user) launch X-based programs su from these windows. Logged in as root I can, but not when as a user and launching from these programs as superuser. For instance in Konq I cannot right-click|OpenWith|AdvancedEditor a file: "KDEInit could not launch 'kwrite'". I can read it in the embedded viewer, but it will not launch. In konsole: hydra@hydra:/opt/kde3/bin$ sux -c ./konqueror root Password: mcop warning: user defined signal handler found for SIG_PIPE, overriding /tmp/mcop-hydra is not owned by user zone still contained 3 blocks hydra@hydra:/opt/kde3/bin$ {Helpful, isn't it? mcop-hydra IS owned by hydra:users} And in konsolesu # konqueror I get: hydra:/opt/kde3/bin # ./konqueror mcop warning: user defined signal handler found for SIG_PIPE, overriding /tmp/mcop-hydra is not owned by user zone still contained 3 blocks hydra:/opt/kde3/bin # Maybe this is a security issue. Maybe the X server is intentionally disabled from accepting root commands from a user. (unlikely tho) Or maybe it's one missing setup step. I had a number of files with invalid user:group (65536:65536) but I think I fixed them all. Is anyone else seeing this? Anyone know the answer? - - -- Manual, n.: A unit of documentation. There are always three or more on a given item. One is on the shelf; someone has the others. The information you need in in the others. -- Ray Simard -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE80gJknQ18+PFcZJsRAgFgAJ9No/XaGTxRSE4i1QBax2WKRi6ZSgCfWfG5 HOrnILOLT3Tt3w2by7zVtcA= =wz7B -----END PGP SIGNATURE-----
On Thursday 02 May 2002 11:22 pm, AnonymousCoward wrote:
But with Suse8 I can no longer (as a user) launch X-based programs su from these windows. Logged in as root I can, but not when as a user and launching from these programs as superuser.
Try... ssh -l root localhost then enter the commands.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 . On Thursday 02 May 2002 22:31, you wrote:
On Thursday 02 May 2002 11:22 pm, AnonymousCoward wrote:
But with Suse8 I can no longer (as a user) launch X-based programs su from these windows. Logged in as root I can, but not when as a user and launching from these programs as superuser.
Try... ssh -l root localhost
then enter the commands.
Thanks, but: hydra@hydra:/opt/kde3/bin$ ssh -l root localhost The authenticity of host 'localhost (::1)' can't be established. RSA key fingerprint is 99:27:9c:ae:99:8a:2a:78:cd:f1:fc:74:8d:28:ed:54. Are you sure you want to continue connecting (yes/no)? yes Please type 'yes' or 'no': yes Warning: Permanently added 'localhost' (RSA) to the list of known hosts. root@localhost's password: Last login: Thu May 2 22:30:14 2002 from localhost Have a lot of fun... hydra:~ # cd /opt/kde3/bin hydra:/opt/kde3/bin # ./konqueror konqueror: cannot connect to X server hydra:/opt/kde3/bin # The real inconvenience is not being able to launch by right-clicking in Konqsu. Are you seeing this? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE80gVbnQ18+PFcZJsRAi8sAJsFeVsNmhpZieTldXeDBwStclL78wCbB547 /F6Fq0REJHZ/0iUgvdke7iI= =du93 -----END PGP SIGNATURE-----
On Thursday 02 May 2002 11:34 pm, AnonymousCoward wrote:
hydra:~ # cd /opt/kde3/bin hydra:/opt/kde3/bin # ./konqueror konqueror: cannot connect to X server hydra:/opt/kde3/bin #
Sorry. Secure shelling worked for me on my Suse 8.0 system. Perhaps it is some other setting that I'm unaware of.
You would need to do this... ssh -X -l root localhost The -X lets you exectute X programs as root :) * cryptopia (cryptopia@subdimension.com) [020502 20:42]: ::On Thursday 02 May 2002 11:34 pm, AnonymousCoward wrote: ::> hydra:~ # cd /opt/kde3/bin ::> hydra:/opt/kde3/bin # ./konqueror ::> konqueror: cannot connect to X server ::> hydra:/opt/kde3/bin # :: ::Sorry. Secure shelling worked for me on my Suse 8.0 system. Perhaps it is some ::other setting that I'm unaware of. :: ::-- ::To unsubscribe, email: suse-kde-unsubscribe@suse.com ::For additional commands, email: suse-kde-help@suse.com ::Please do not cross-post to suse-linux-e :: -=Ben --=====-----=====-- mailto:ben@whack.org --=====-- If it's true that our species is alone in the universe, then I'd have to say that the universe aimed rather low and settled for very little. -GC --=====-----=====--
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday 03 May 2002 01:26, Ben Rosenberg wrote:
You would need to do this...
ssh -X -l root localhost
The -X lets you exectute X programs as root :)
* cryptopia (cryptopia@subdimension.com) [020502 20:42]: ::On Thursday 02 May 2002 11:34 pm, AnonymousCoward wrote: ::> hydra:~ # cd /opt/kde3/bin ::> hydra:/opt/kde3/bin # ./konqueror ::> konqueror: cannot connect to X server ::> hydra:/opt/kde3/bin # :: ::Sorry. Secure shelling worked for me on my Suse 8.0 system. Perhaps it is :: some other setting that I'm unaware of. :: ::-- ::To unsubscribe, email: suse-kde-unsubscribe@suse.com ::For additional commands, email: suse-kde-help@suse.com ::Please do not cross-post to suse-linux-e
-=Ben
--=====-----=====-- mailto:ben@whack.org --=====-- If it's true that our species is alone in the universe, then I'd have to say that the universe aimed rather low and settled for very little. -GC --=====-----=====--
It worked! Thanks Ben. Now if I could only edit files in Konqsu... -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE80pr1nQ18+PFcZJsRAkoZAJ46nDMJfDU85CygLAzbNlhshSWh2wCfTCl1 G85wDSYiTUBgPb+92QH1Kqw= =/Qbg -----END PGP SIGNATURE-----
* AnonymousCoward (quantum@ultra2k.com) [020503 07:21]: :: ::It worked! Thanks Ben. :: ::Now if I could only edit files in Konqsu... NP. I didn't think that X forwarding was turned on by default. It shouldn't be. It hasn't been in 7.2 or 7.3. Glad it worked for ya. -=Ben --=====-----=====-- mailto:ben@whack.org --=====-- If it's true that our species is alone in the universe, then I'd have to say that the universe aimed rather low and settled for very little. -GC --=====-----=====--
On Friday 03 May 2002 12:34 pm, Ben Rosenberg wrote:
NP. I didn't think that X forwarding was turned on by default. It shouldn't be. It hasn't been in 7.2 or 7.3.
I checked again. It is enabled in the sshd_config (server), but not the ssh_config (client). I confess that I checked by logging into the Suse 8.0 machine remotely from another machine with it enabled.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday 03 May 2002 11:34, Ben Rosenberg wrote:
* AnonymousCoward (quantum@ultra2k.com) [020503 07:21]: ::It worked! Thanks Ben. :: ::Now if I could only edit files in Konqsu...
NP. I didn't think that X forwarding was turned on by default. It shouldn't be. It hasn't been in 7.2 or 7.3.
Glad it worked for ya.
-=Ben
--=====-----=====-- mailto:ben@whack.org --=====-- If it's true that our species is alone in the universe, then I'd have to say that the universe aimed rather low and settled for very little. -GC --=====-----=====--
Xforwarding is unfamiliar to me. What does it do, and how does one jigger it? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE80srgnQ18+PFcZJsRAnGAAJ9wAukKD2OB8NJiwam3KnHJaTsJWACeOezr bOvI5etLGq1K71eXFwSaR8k= =Mabv -----END PGP SIGNATURE-----
* AnonymousCoward (quantum@ultra2k.com) [020503 10:45]: :: ::Xforwarding is unfamiliar to me. What does it do, and how does one jigger it? It's basically tunneling X through an ssh tunnel. So if you had say a machine on your desk at work running a Unix/Linux based OS w/ X on it and you were using Mozilla to read your mail.. you could do this. 1. ssh -X <user>@<machine>.<domain> 2. In that Window type mozilla 3. ssh takes care of exporting the display through the ssh tunnel you've established and it should appear on your desk at home. It's actually running on the machine in the office but it uses libs and other files to display it to your local Xserver. -=Ben --=====-----=====-- mailto:ben@whack.org --=====-- If it's true that our species is alone in the universe, then I'd have to say that the universe aimed rather low and settled for very little. -GC --=====-----=====--
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday 03 May 2002 16:07, Ben Rosenberg wrote:
* AnonymousCoward (quantum@ultra2k.com) [020503 10:45]: ::Xforwarding is unfamiliar to me. What does it do, and how does one :: jigger it?
It's basically tunneling X through an ssh tunnel. So if you had say a machine on your desk at work running a Unix/Linux based OS w/ X on it and you were using Mozilla to read your mail.. you could do this.
1. ssh -X <user>@<machine>.<domain> 2. In that Window type mozilla 3. ssh takes care of exporting the display through the ssh tunnel you've established and it should appear on your desk at home.
It's actually running on the machine in the office but it uses libs and other files to display it to your local Xserver.
-=Ben
--=====-----=====-- mailto:ben@whack.org --=====-- If it's true that our species is alone in the universe, then I'd have to say that the universe aimed rather low and settled for very little. -GC --=====-----=====--
Interesting. Thanks. I cannot right-click|AdvEdit a file. And now kfmclient will not launch at all. Must be zombies. This is some kind of issue with acting as root, while logged in as a user. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE80wMfnQ18+PFcZJsRAkbyAJ9fXl2NyrVyzwmOkqWMAbYv38YNZgCfd0sl 29gzBM1jlytecUCEmEylTPU= =ldV8 -----END PGP SIGNATURE-----
* AnonymousCoward (quantum@ultra2k.com) [020503 14:49]: :: ::Interesting. Thanks. :: ::I cannot right-click|AdvEdit a file. And now kfmclient will not launch at ::all. Must be zombies. :: ::This is some kind of issue with acting as root, while logged in as a user. Nope..it's a KDE3.0 has a bit more issues then we've found yet :) -=Ben --=====-----=====-- mailto:ben@whack.org --=====-- If it's true that our species is alone in the universe, then I'd have to say that the universe aimed rather low and settled for very little. -GC --=====-----=====--
On Thursday 02 May 2002 11:31 pm, cryptopia wrote:
On Thursday 02 May 2002 11:22 pm, AnonymousCoward wrote:
But with Suse8 I can no longer (as a user) launch X-based programs su from these windows. Logged in as root I can, but not when as a user and launching from these programs as superuser.
Try... ssh -l root localhost
then enter the commands.
I've always gotten around the problem by including xhost +localhost in my ~/.xinitrc file. If that still works in AC's environment, it's much more convenient because it doesn't require an incantation each time you want to do something as root. Paul Abrahams
participants (4)
-
AnonymousCoward
-
Ben Rosenberg
-
cryptopia
-
Paul W. Abrahams