From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jonathan Groll Newsgroups: gmane.emacs.help Subject: Re: Remote editing through ssh and sudo Date: Mon, 1 Sep 2008 07:37:29 +0200 Message-ID: <20080901053729.GA14219@groll.co.za> References: <87fxolxzi4.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Trace: ger.gmane.org 1220247497 27353 80.91.229.12 (1 Sep 2008 05:38:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Sep 2008 05:38:17 +0000 (UTC) To: Michael Albinus , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 01 07:39:11 2008 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 1Ka286-0005TG-Pd for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Sep 2008 07:39:11 +0200 Original-Received: from localhost ([127.0.0.1]:43380 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ka277-0008DN-V4 for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Sep 2008 01:38:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ka26Y-0008DB-18 for help-gnu-emacs@gnu.org; Mon, 01 Sep 2008 01:37:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ka26W-0008Cl-Ik for help-gnu-emacs@gnu.org; Mon, 01 Sep 2008 01:37:33 -0400 Original-Received: from [199.232.76.173] (port=44283 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ka26W-0008Cc-9o for help-gnu-emacs@gnu.org; Mon, 01 Sep 2008 01:37:32 -0400 Original-Received: from mail.groll.co.za ([67.18.176.185]:44040) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ka26W-0004eQ-5n for help-gnu-emacs@gnu.org; Mon, 01 Sep 2008 01:37:32 -0400 Original-Received: by mail.groll.co.za (Postfix, from userid 1004) id 8C02A20CC79; Mon, 1 Sep 2008 07:37:29 +0200 (SAST) Content-Disposition: inline In-Reply-To: <87fxolxzi4.fsf@gmx.de> User-Agent: Mutt/1.5.13 (Linux mail 2.6.18.8-linode10 i686) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:57163 Archived-At: On Sun, Aug 31, 2008 at 12:14:27PM +0200, Michael Albinus wrote: >maghac writes: >> way to access the server is via ssh. No ftp or sftp. For security >> reasons, I am not allowed to log in as the app owner user, but instead >> I have to log in with my personal login with ssh and then use "sudo su >> - app_admin" to switch to the app owner user. Sudo will of course ask >> me for my password when I do this. > >Tramp 2.1 shall support this. Read about multi hops >. Need to read further, but in theory do multi-hops support the scenario where your regular user is not a sudoer, but wants to edit files as root on the localhost. Can there be an intermediate 'su' step? E.g. on my mac I don't really trust the default security, so I log in as a regular user who is not in the sudo file. To edit files as root, I first have to su to an account that is in the sudoers list, and only then can I sudo to become root. Cheers, Jonathan.