From: David Hansen <david.hansen@gmx.net>
To: help-gnu-emacs@gnu.org
Subject: Re: SU commands from Emacs
Date: Fri, 17 Aug 2007 21:04:42 +0200 [thread overview]
Message-ID: <87lkca9e45.fsf@localhorst.mine.nu> (raw)
In-Reply-To: 878x8ahxho.fsf@W0053328.mgh.harvard.edu
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
next prev parent reply other threads:[~2007-08-17 19:04 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-17 17:38 SU commands from Emacs Joel J. Adamson
2007-08-17 18:23 ` Emilio Lopes
2007-08-17 19:38 ` Joel J. Adamson
2007-08-18 9:55 ` Emilio Lopes
2007-08-17 19:04 ` David Hansen [this message]
2007-08-17 19:27 ` Peter Dyballa
[not found] ` <mailman.4925.1187378874.32220.help-gnu-emacs@gnu.org>
2007-08-17 20:23 ` Joel J. Adamson
2007-08-17 20:37 ` Sven Joachim
[not found] ` <mailman.4924.1187377704.32220.help-gnu-emacs@gnu.org>
2007-08-17 20:28 ` Joel J. Adamson
2007-08-24 6:38 ` Dieter Wilhelm
2007-08-24 9:37 ` Michael Albinus
2007-08-24 20:32 ` Dieter Wilhelm
2007-08-24 22:16 ` Peter Dyballa
2007-08-25 2:45 ` Dieter Wilhelm
2007-08-25 19:35 ` Joel J. Adamson
2007-08-26 8:49 ` Michael Albinus
2007-08-27 13:28 ` Joel J. Adamson
[not found] ` <mailman.5288.1187987493.32220.help-gnu-emacs@gnu.org>
2007-08-24 21:55 ` David Kastrup
2007-08-25 3:00 ` Dieter Wilhelm
2007-08-26 10:55 ` Michael Albinus
2007-08-24 9:51 ` Peter Dyballa
[not found] ` <mailman.5238.1187937431.32220.help-gnu-emacs@gnu.org>
2007-08-24 7:59 ` Tim X
2007-08-24 20:20 ` Dieter Wilhelm
[not found] ` <mailman.5305.1188026786.32220.help-gnu-emacs@gnu.org>
2007-08-25 9:28 ` Tim X
2007-08-25 13:57 ` Dieter Wilhelm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lkca9e45.fsf@localhorst.mine.nu \
--to=david.hansen@gmx.net \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).