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 1OzL3Y-0004mP-1v for garchives@archives.gentoo.org; Sat, 25 Sep 2010 03:04:08 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8A4A9E064B; Sat, 25 Sep 2010 03:03:13 +0000 (UTC) Received: from mail-yw0-f53.google.com (mail-yw0-f53.google.com [209.85.213.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 6B47CE064B for ; Sat, 25 Sep 2010 03:03:13 +0000 (UTC) Received: by ywf7 with SMTP id 7so2134722ywf.40 for ; Fri, 24 Sep 2010 20:03:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=sYf9gXB/uQvL5SPgF2VasSABbMBevwKiy5Pkn/ks7dA=; b=la1u/6qBTc6nyT0ke6EOiikFdX38X3iwrFSYcHrdDM5SW9aBmIZgKDaOIAR8CqD6aP MJpqH3phDMXvm8sAQYciinOOfetDppQ7ZV4XgioDCtDJSOzoh+Gkwjl7JCbY66om64nU L2n/eheMg0Qufc5MYcIgIxYhBjpU1DziIZxtc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=v+wGWIEkfvrlZcwtwQz8farWNjM3XYqjacq2bdRPaPtrjHs6A7WNrWBH2MivBuJQdk jtMMIYvc4Pak1bFkY+O/kIjuVlTt1Q/zLcZfS/OIQStcNvaxPEIDeXeBXoNpe9tPhEZJ 5rQL2R+vfeplDeSgBHrFtF9YxQ28gKkJNx9DQ= Received: by 10.150.215.3 with SMTP id n3mr5415999ybg.73.1285383793043; Fri, 24 Sep 2010 20:03:13 -0700 (PDT) Received: from [192.168.1.2] (adsl-0-124-136.jan.bellsouth.net [65.0.124.136]) by mx.google.com with ESMTPS id c2sm1801938ybi.9.2010.09.24.20.03.11 (version=SSLv3 cipher=RC4-MD5); Fri, 24 Sep 2010 20:03:11 -0700 (PDT) Message-ID: <4C9D666D.7090509@gmail.com> Date: Fri, 24 Sep 2010 22:03:09 -0500 From: Dale User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.13) Gecko/20100920 Gentoo/2.0.8-r1 SeaMonkey/2.0.8 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 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: X programs as root References: <4C9AAB03.2070505@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 7200a092-a9d7-4027-91c8-d810f4b934fb X-Archives-Hash: 6d1e550abf72edb322fad0bf054095f8 Nikos Chantziaras wrote: > 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 > > Well, I don't really know what it is using. I just set up the menu item to run the program as root. I don't know if it uses su -, kdesu, sudo or what. I just know it worked until the upgrade a few days ago. Since KDE proclaimed this was supposed to be ready for widespread use and cut off KDE3, I sure do wish they would make up their mind HOW things are going to work. I would think they need to know that before claiming something was ready for widespread use. Makes me want to go back to KDE 3.5. At least I could get everything I need to work and survive a upgrade too. ;-) Oh well. This is the new normal for KDE I guess. lol Dale :-) :-)