GNU bug report logs -
#3712
23.1.50; SECURITY: Tramp creates -rwxrwxrwx permission files with /su and /sudo method
Previous Next
Reported by: Teemu Likonen <tlikonen <at> iki.fi>
Date: Mon, 29 Jun 2009 15:25:05 UTC
Severity: serious
Done: Teemu Likonen <tlikonen <at> iki.fi>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On 2009-06-30 01:01 (+0300), Teemu Likonen wrote:
> On 2009-06-29 23:15 (+0200), Michael Albinus wrote:
>
>>> 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), [...]
>>
>> I've committed a fix, to both the trunk and the 23.1 branch.
>
> 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.
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.
This bug report was last modified 16 years and 21 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.