From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#3712: 23.1.50; SECURITY: Tramp creates -rwxrwxrwx permission files with /su and /sudo method Date: Tue, 30 Jun 2009 14:21:53 +0200 Message-ID: References: <87ljnbax4h.fsf@iki.fi> <8763eevosc.fsf@iki.fi> <87ws6uzqqg.fsf@gmx.de> <878wjau0x5.fsf@iki.fi> Reply-To: Michael Albinus , 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 1246369291 15789 80.91.229.12 (30 Jun 2009 13:41:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Jun 2009 13:41:31 +0000 (UTC) Cc: 3712@emacsbugs.donarmstrong.com To: Teemu Likonen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 30 15:41:20 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from mail-forward2.uio.no ([129.240.10.71]) by lo.gmane.org with esmtp (Exim 4.50) id 1MLdVw-0005ZP-07 for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Jun 2009 15:36:48 +0200 Original-Received: from exim by mail-out2.uio.no with local-bsmtp (Exim 4.69) (envelope-from ) id 1MLcft-00065W-BC for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Jun 2009 14:43:01 +0200 Original-Received: from mail-mx4.uio.no ([129.240.10.45]) by mail-out2.uio.no with esmtp (Exim 4.69) (envelope-from ) id 1MLcft-00065T-AE for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Jun 2009 14:43:01 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by mail-mx4.uio.no with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1MLcfs-0005PC-Gv for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Jun 2009 14:43:01 +0200 Original-Received: from localhost ([127.0.0.1]:42095 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MLcfr-00040S-33 for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Jun 2009 08:42:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MLcad-0006HT-2k for bug-gnu-emacs@gnu.org; Tue, 30 Jun 2009 08:37:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MLcaY-00068d-1C for bug-gnu-emacs@gnu.org; Tue, 30 Jun 2009 08:37:33 -0400 Original-Received: from [199.232.76.173] (port=54849 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MLcaW-00067f-Ki for bug-gnu-emacs@gnu.org; Tue, 30 Jun 2009 08:37:29 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:36227) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MLcaV-0000lm-W2 for bug-gnu-emacs@gnu.org; Tue, 30 Jun 2009 08:37:28 -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 n5UCbO0w003118; Tue, 30 Jun 2009 05:37:26 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n5UCU5F8001586; Tue, 30 Jun 2009 05:30:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Michael Albinus Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 30 Jun 2009 12:30:05 +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.1246364526667 (code B ref 3712); Tue, 30 Jun 2009 12:30:05 +0000 Original-Received: (at 3712) by emacsbugs.donarmstrong.com; 30 Jun 2009 12:22:06 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mailrelay1.alcatel.de (mailrelay1.alcatel.de [194.113.59.95]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5UCM0VD000653 for <3712@emacsbugs.donarmstrong.com>; Tue, 30 Jun 2009 05:22:02 -0700 Original-Received: from destgsu0048.stgl.sel.alcatel.de (destgsu0048.de.alcatel-lucent.com [149.204.242.4]) by mailrelay1.alcatel.de (8.13.8/8.13.8/ICT) with ESMTP id n5UCLsXU019862; Tue, 30 Jun 2009 14:21:54 +0200 Original-Received: from slbhn1.alcatel.de (slbhn1.de.alcatel-lucent.com [149.204.90.35]) by destgsu0048.stgl.sel.alcatel.de (8.12.3/8.12.3) with ESMTP id n5UCLsY4005811; Tue, 30 Jun 2009 14:21:54 +0200 (MEST) In-Reply-To: <878wjau0x5.fsf@iki.fi> (Teemu Likonen's message of "Tue, 30 Jun 2009 01:31:50 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) X-Alcanet-virus-scanned: n5UCLsY4005811 at destgsu0048.stgl.sel.alcatel.de X-Scanned-By: MIMEDefang 2.57 on 149.204.45.72 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Tue, 30 Jun 2009 08:37:33 -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 X-UiO-Spam-info: not spam, SpamAssassin (score=-4.0, required=5.0, autolearn=disabled, RCVD_IN_DNSWL_MED=-4, uiobl=NO, uiouri=_URIID_) X-UiO-Scanned: B0FEBE0C472024A5D619EF1DF37FEC4226E7B3A8 X-UiO-SPAM-Test: remote_host: 199.232.76.165 spam_score: -39 maxlevel 80 minaction 2 bait 0 mail/h: 29 total 102010 max/h 424 blacklist 0 greylist 0 ratelimit 0 Xref: news.gmane.org gmane.emacs.bugs:29102 Archived-At: Teemu Likonen writes: >> Thanks. Otherwise OK but I don't like the fact that it gives executable >> bits (-rwxr-xr-x) by default. Normal behavior for new files is to drop >> umask bits _and_ executable bits. Executable must be added explicitly. When creating a new file, Tramp uses Emacs' default file modes. You can check them with "M-: (default-file-modes)". If you want to change them, you could apply for example "M-: (set-default-file-modes #o0400)". The value is used then for all newly created files, also for local ones. > And when editing existing files it should obviously respect the bits > that the file already has. Currently -- even with this fix -- tramp is > adding "x" bits at some point because "backup by rename" moves old > version out of the way and new is created with -rwxr-xr-x bits. As I said already, I cannot reproduce it. However, there seems to be a small annoyance in special cases. I've fixed this. Could you, please, check, whether it is OK now for you? Best regards, Michael.