From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: open files as root Date: Sat, 29 Aug 2009 19:48:11 +0200 Organization: ThierryVolpiatto Message-ID: <87k50mo6jo.fsf@tux.homenetwork> References: <87my5ihk50.fsf@online.de> <87tyzq4vkn.fsf@lola.goethe.zz> <8763c661jq.fsf@online.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1251568511 20708 80.91.229.12 (29 Aug 2009 17:55:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Aug 2009 17:55:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 29 19:55:04 2009 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 1MhS8l-0001Wf-13 for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Aug 2009 19:55:03 +0200 Original-Received: from localhost ([127.0.0.1]:48041 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MhS8k-0005cQ-8t for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Aug 2009 13:55:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MhS8I-0005c8-R7 for help-gnu-emacs@gnu.org; Sat, 29 Aug 2009 13:54:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MhS8E-0005bo-BR for help-gnu-emacs@gnu.org; Sat, 29 Aug 2009 13:54:34 -0400 Original-Received: from [199.232.76.173] (port=43093 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MhS8E-0005bl-5k for help-gnu-emacs@gnu.org; Sat, 29 Aug 2009 13:54:30 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:57872) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MhS8D-0008O6-My for help-gnu-emacs@gnu.org; Sat, 29 Aug 2009 13:54:29 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1MhS8B-0001Nd-8O for help-gnu-emacs@gnu.org; Sat, 29 Aug 2009 19:54:27 +0200 Original-Received: from 40.211.85-79.rev.gaoland.net ([79.85.211.40]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 29 Aug 2009 19:54:27 +0200 Original-Received: from thierry.volpiatto by 40.211.85-79.rev.gaoland.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 29 Aug 2009 19:54:27 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 36 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 40.211.85-79.rev.gaoland.net Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUHAwNfJRBVTESlTym0 RB/OwKFivhZqAAAACXBIWXMAAAsSAAALEgHS3X78AAAACXZwQWcAAAAwAAAAMADO7oxXAAABeElE QVQ4y3VTW47CMAyMwwUyTfYfUvG/wfC/ET4B0t7/KmsHurRgXFVVPRm/xglhsRj2+npW98G3+Amp tS5BXxl3SqzcXGRuEyf7n5lPA9jXetNPRhE7EJkzfz8YWnIgBSwW95TK4H79/t4GINKNADWj4PgA DiJX/ZxFDzDXeb4oYMw7kNUvyMzcaj3ioICG4hCKEShkPpwQ49Q05nnkGAQLDFDdExjm0qpowBYA Wi61bDlFU1GW0WbY2dSJYX5ZD2S0AiZL+rPyE19TpMzP2IvNWly+NkuWNgD4pO2oL73IQXoSyVX2 NHna7tgadWRXoCdvf2guqEcvGHqZwE520iRD0/QCYiiTE+U21w1Qxvg6iSp9fbIiDCnSAelDkCVF Vn+HekqXzRybwJ40xF4DMRG6SWGK9G1lYzHSxLYEm05GWbpJCB6A9tb9A3BGn2XdwJbS/WuInj74 4QNF8sVFdP3vl+5tgYp4Ev7fyrfFMkXgElDgV4uV/w8TWEeLCIGJ/AAAACV0RVh0Y3JlYXRlLWRh dGUAMjAwOC0wNS0zMVQyMjoxNDoyMiswMjowMM7uH/IAAAARdEVYdGpwZWc6Y29sb3JzcGFjZQAy LHVVnwAAACB0RVh0anBlZzpzYW1wbGluZy1mYWN0b3IAMngyLDF4MSwxeDFJ+qa0AAAAJXRFWHRt b2RpZnktZGF0ZQAyMDA3LTEwLTI4VDE3OjA4OjQ4KzAxOjAwhqNSRgAAAABJRU5ErkJggg== User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:aKy1l0o0ddvl1ljgNh30P2ylQXQ= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:67644 Archived-At: Hi Henry, you can use a function like this: ,---- | (defun find-file-as-root (file) | (interactive "fFindFileAsRoot: ") | (find-file (concat "/su::" (expand-file-name file)))) `---- Replace /su: by /sudo: if you are a sudo user (Debian?) henry atting writes: > On Sa, Aug 29 2009, David Kastrup wrote: > >> henry atting writes: >> >>> Is there another way as with tramp to open files as root within emacs? >> >> No. >> >>> (Since I am sure that tramp and I never will be friends in this life) >> >> Partners is all you need. > > Okay, tramp won, I switched from zsh (which impressing functionality I > don't use anyway) back to bash. > > (I now the appropriate lines which are to add to .zshrc, but this time > they don't work – another time they did.) > > henry -- A + Thierry Volpiatto Location: Saint-Cyr-Sur-Mer - France