From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.bugs Subject: bug#3712: 23.1.50; SECURITY: Tramp creates -rwxrwxrwx permission files with /su and /sudo method Date: Mon, 29 Jun 2009 22:10:59 +0300 Message-ID: <8763eevosc.fsf@iki.fi> References: <87ljnbax4h.fsf@iki.fi> Reply-To: Teemu Likonen , 3712@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1246304266 9997 80.91.229.12 (29 Jun 2009 19:37:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Jun 2009 19:37:46 +0000 (UTC) To: 3712@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 29 21:37:39 2009 Return-path: Envelope-to: geb-bug-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 1MLMfZ-0003TD-NM for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Jun 2009 21:37:38 +0200 Original-Received: from localhost ([127.0.0.1]:56740 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MLMfZ-0005cR-3k for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Jun 2009 15:37:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MLMfU-0005cL-3z for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2009 15:37:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MLMfP-0005c0-Mv for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2009 15:37:31 -0400 Original-Received: from [199.232.76.173] (port=32828 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MLMfP-0005bx-HG for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2009 15:37:27 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:56974) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MLMfP-0007JB-1v for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2009 15:37:27 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5TJbONU022618; Mon, 29 Jun 2009 12:37:25 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n5TJK4pd019518; Mon, 29 Jun 2009 12:20:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Teemu Likonen Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 29 Jun 2009 19:20:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3712 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3712-submit@emacsbugs.donarmstrong.com id=B3712.124630266618483 (code B ref 3712); Mon, 29 Jun 2009 19:20:04 +0000 Original-Received: (at 3712) by emacsbugs.donarmstrong.com; 29 Jun 2009 19:11:06 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from jenni2.inet.fi (mta-out.inet.fi [195.156.147.13]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5TJB117018478 for <3712@emacsbugs.donarmstrong.com>; Mon, 29 Jun 2009 12:11:02 -0700 Original-Received: from mithlond.arda.local (80.220.180.181) by jenni2.inet.fi (8.5.014) id 49F5CB6402441305 for 3712@emacsbugs.donarmstrong.com; Mon, 29 Jun 2009 22:11:00 +0300 Original-Received: from dtw by mithlond.arda.local with local (Exim 4.69) (envelope-from ) id 1MLMFn-0007Hk-Ts for 3712@emacsbugs.donarmstrong.com; Mon, 29 Jun 2009 22:10:59 +0300 In-Reply-To: <87ljnbax4h.fsf@iki.fi> (Teemu Likonen's message of "Mon, 29 Jun 2009 18:16:30 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Mon, 29 Jun 2009 15:37:31 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:29088 Archived-At: On 2009-06-29 18:16 (+0300), Teemu Likonen wrote: > When method /su: or /sudo: is used to _create_ a file the file's > permission will be set to -rwxrwxrwx (777), [...] This also happens when _editing_ an existing file because "backup by renaming" will move the old file aside and the new version of file is really creating a new file. So, if you want to give your /etc/passwd and /etc/shadow the -rwxrwxrwx permissions just edit the files with tramp's /su or /sudo method while having backup by renaming enabled.