Bug 247786 - vsftpd creates files with incorrect permissions
Summary: vsftpd creates files with incorrect permissions
Keywords:
Status: CLOSED DUPLICATE of bug 244686
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: vsftpd
Version: 3.9
Hardware: All
OS: Linux
low
high
Target Milestone: ---
Assignee: Maros Barabas
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-07-11 13:30 UTC by Chris Langlands
Modified: 2007-11-17 01:14 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-07-12 08:03:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Chris Langlands 2007-07-11 13:30:48 UTC
Since Update 9, users who upload files via vsftpd service have been reporting
unusal permissions-based problems.  Situation has been going on since U9, but
all affected users happened to be using the same FTP client (Transmit on Mac) so
I had put it down to that.  It wasn't until today that I tested the situation
myself using lftp, and I can confirm unusual permissions behaviour with the U9
release of vsftpd.

Version-Release number of selected component:

  vsftpd-1.2.1-3E.12

Not affected:

  vsftpd-1.2.1-3E.6

Steps to reproduce:

1. I take a file with 644 permissions.

  -rw-r--r--  1 cpaul users  3380 Jul 12  2006 TEXTFILE

2. Upload it

  lftp cpaul:/> put TEXTFILE
  
3. Check the remote listing

  lftp cpaul:/> ls -la
  ----rw-r-x    1 501 501  3380 Jul 11 06:27 TEXTFILE

4. Downgrade vsftpd to vsftpd-1.2.1-3E.6 and repeat

  lftp cpaul:/> put TEXTFILE
  lftp cpaul:/> ls -la
  -rw-r--r--    1 501 501  3380 Jul 11 06:28 REFACTOR


Possibility that the problem was introduced during this fix?
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=214987

The problem was also mentioned on taroon list here:
http://www.redhat.com/archives/taroon-list/2007-June/msg00032.html

The only local config in my vsftpd.conf is listed below:

  anonymous_enable=NO
  local_umask=022
  chroot_local_user=YES

Comment 1 Maros Barabas 2007-07-12 08:03:06 UTC

*** This bug has been marked as a duplicate of 244686 ***


Note You need to log in before you can comment on or make changes to this bug.