From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1OzIGs-0002YW-Kr for garchives@archives.gentoo.org; Sat, 25 Sep 2010 00:05:42 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4FE1DE074B for ; Sat, 25 Sep 2010 00:05:42 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id CD665E082F for ; Fri, 24 Sep 2010 23:35:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 8B4FB1B4057 for ; Fri, 24 Sep 2010 23:35:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -2.901 X-Spam-Level: X-Spam-Status: No, score=-2.901 required=5.5 tests=[AWL=-0.302, BAYES_00=-2.599] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MLIcabOKNhpI for ; Fri, 24 Sep 2010 23:35:01 +0000 (UTC) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by smtp.gentoo.org (Postfix) with ESMTP id 0CD081B407A for ; Fri, 24 Sep 2010 23:34:59 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OzHn5-0005QH-0g for gentoo-user@gentoo.org; Sat, 25 Sep 2010 01:34:55 +0200 Received: from athedsl-377297.home.otenet.gr ([79.131.25.207]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 25 Sep 2010 01:34:55 +0200 Received: from realnc by athedsl-377297.home.otenet.gr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 25 Sep 2010 01:34:55 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Nikos Chantziaras Subject: [gentoo-user] Re: X programs as root Date: Sat, 25 Sep 2010 02:35:16 +0300 Organization: Lucas Barks Message-ID: References: <4C9AAB03.2070505@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: athedsl-377297.home.otenet.gr User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100908 Thunderbird/3.1.3 In-Reply-To: <4C9AAB03.2070505@gmail.com> X-Archives-Salt: 29cb0727-b560-48cc-aa2e-7004800ed4c4 X-Archives-Hash: 98ca18fa000f3b5874569e5c0bced39d On 09/23/2010 04:18 AM, Dale wrote: > Nikos Chantziaras wrote: >> On 09/22/2010 09:48 PM, Andrey Vul wrote: >>> When I launch X programs via sudo, I get the following: >>> >>> $sudo gui-admin >>> No protocol specified >>> gui-admin: cannot connect to X server :0 >>> >>> ( Assume gui-admin is an X program ) >>> >>> But (gk|kde)su(do)? works. This is somewhat confusing. >> >> sudo doesn't keep the $DISPLAY environment variable by default. There >> could be other issues too. Best stick to kdesu and friends; that's >> what they are there for. >> >> > > Well, I noticed after the recent upgrade to 4.5.1 that mine doesn't work > either. It worked before but not now. I'm not sure what changed between > 4.4 and 4.5.1 but it broke my konqueror as root and other programs as > well. Still have some I haven't tried tho. Konqueror is the one I need > most. Oh, I can get Dolphin to work tho. The conspiracy theory part in > me is starting to think. > > Sure would like to get this working again too. Again, use kdesu, not sudo. But if some reason you want sudo, /etc/sudoers has some info: ## Run X applications through sudo Read the comments there and uncomment what suits you. Did I mention that you should use kdesu instead of sudo? :-P