From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Hansen Newsgroups: gmane.emacs.help Subject: Re: SU commands from Emacs Date: Fri, 17 Aug 2007 21:04:42 +0200 Organization: disorganized Message-ID: <87lkca9e45.fsf@localhorst.mine.nu> References: <878x8ahxho.fsf@W0053328.mgh.harvard.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1187377721 26029 80.91.229.12 (17 Aug 2007 19:08:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 17 Aug 2007 19:08:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 17 21:08:38 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IM7BW-0005TQ-AA for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Aug 2007 21:08:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IM7BW-0004Kc-04 for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Aug 2007 15:08:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IM7BG-0004KX-5B for help-gnu-emacs@gnu.org; Fri, 17 Aug 2007 15:08:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IM7BB-0004KL-J7 for help-gnu-emacs@gnu.org; Fri, 17 Aug 2007 15:08:20 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IM7BB-0004KI-Fj for help-gnu-emacs@gnu.org; Fri, 17 Aug 2007 15:08:17 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IM7BA-0002Bg-T1 for help-gnu-emacs@gnu.org; Fri, 17 Aug 2007 15:08:17 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IM7B8-0008Jz-H1 for help-gnu-emacs@gnu.org; Fri, 17 Aug 2007 21:08:14 +0200 Original-Received: from e178011129.adsl.alicedsl.de ([85.178.11.129]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 Aug 2007 21:08:14 +0200 Original-Received: from david.hansen by e178011129.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 Aug 2007 21:08:14 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 20 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: e178011129.adsl.alicedsl.de Mail-Copies-To: nobody User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:NKf4d6KfkUbR08OatwgyubT/TdQ= X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:46655 Archived-At: On Fri, 17 Aug 2007 13:38:59 -0400 Joel J. Adamson wrote: > The one remaining problem is executing shell commands that need root > permission. I can use Dired and edit files with "/su::" tramp-mode, > however sometimes I just need to execute a command. I have sudo > installed on Slackware Linux 12.0, but the password prompt does not > come up properly. I use (defun root-shell (&optional arg) (interactive "P") (let ((explicit-shell-file-name "sudo")) (shell (if arg (generate-new-buffer-name "*root shell*") "*root shell*")) ;; change this to your roots home directory (setq default-directory "/root/"))) David