From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1EKh9L-000097-Qk for garchives@archives.gentoo.org; Wed, 28 Sep 2005 18:59:28 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id j8SIomUR025092; Wed, 28 Sep 2005 18:50:49 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id j8SIkYst015105 for ; Wed, 28 Sep 2005 18:46:34 GMT Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by smtp.gentoo.org with esmtp (Exim 4.43) id 1EKh3r-0006pN-QG for gentoo-dev@lists.gentoo.org; Wed, 28 Sep 2005 18:53:47 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1EKh2X-0004GJ-30 for gentoo-dev@gentoo.org; Wed, 28 Sep 2005 20:52:25 +0200 Received: from ip68-230-97-182.ph.ph.cox.net ([68.230.97.182]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 Sep 2005 20:52:25 +0200 Received: from 1i5t5.duncan by ip68-230-97-182.ph.ph.cox.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 Sep 2005 20:52:25 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-dev@lists.gentoo.org From: Duncan <1i5t5.duncan@cox.net> Subject: [gentoo-dev] Re: Restarting kde-programms of a normal users-session from a root account Date: Wed, 28 Sep 2005 11:49:31 -0700 Organization: Sometimes Message-ID: References: <433AD41E.2070209@gmx.net> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: ip68-230-97-182.ph.ph.cox.net User-Agent: Pan/0.14.2.91 (As She Crawled Across the Table) Sender: news X-Archives-Salt: 59353d0e-2e10-4561-bb96-9eb503d84974 X-Archives-Hash: 69740545dd214a3910dc3fe936d6959d wOmbad posted <433AD41E.2070209@gmx.net>, excerpted below, on Wed, 28 Sep 2005 19:34:22 +0200: > Does anybody know how to realize the same task as the script - but from > a root console? While Ciaran's correct, this should have been posted to user, here's one answer: emerge sudo (if necessary), and run sudo -u script. You may also want to look into configuring sudo so certain users may use it to run certain commands as root (or other users), with or without supplying their user password (NOT the root user password, which may not be the best idea to give to users needing to run only one or two commands as root). Groking all the config options can be a bit complex (nothing a C programmer shouldn't easily master), but sudo can be tremendously useful, once it's setup correctly, helping one avoid the fat-finger danger (as well as the security danger) of logging in as root unnecessarily. -- Duncan - List replies preferred. No HTML msgs. "Every nonfree program has a lord, a master -- and if you use the program, he is your master." Richard Stallman in http://www.linuxdevcenter.com/pub/a/linux/2004/12/22/rms_interview.html -- gentoo-dev@gentoo.org mailing list