vsftpd postinstall checks for user/group starting with ftp
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vsftpd (Debian) |
Fix Released
|
Unknown
|
|||
vsftpd (Ubuntu) |
Fix Released
|
Medium
|
Serge Hallyn | ||
Lucid |
Fix Released
|
Medium
|
Unassigned | ||
Maverick |
Fix Released
|
Medium
|
Unassigned | ||
Natty |
Fix Released
|
Medium
|
Serge Hallyn |
Bug Description
Binary package hint: vsftpd
?
ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: vsftpd (not installed)
ProcVersionSign
Uname: Linux 2.6.32-25-generic i686
AptOrdering:
vsftpd: Install
vsftpd: Configure
Architecture: i386
Date: Fri Nov 19 22:28:45 2010
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
SourcePackage: vsftpd
Title: package vsftpd (not installed) failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
SRU comments:
Impact: Breaks install of vsftp if any existing user or group name begins with 'ftp'.
How bug addressed: The vsftpd.postinst script is patched so it accepts only whole names 'ftp', not names beginning with 'ftp'.
Patch: See attached debdiffs.
To reproduce: Create a user or group 'ftpfoo' before installing vsftpd
Regression Potential: This should have no impact as it only changes the string being checked for in existing users and groups. If there were a typo in the patch, it could break vsftpd installation.
Related branches
- Martin Pitt: Approve
-
Diff: 60 lines (+15/-4)3 files modifieddebian/changelog (+11/-0)
debian/vsftpd.postinst (+2/-2)
debian/vsftpd.upstart (+2/-2)
- Dave Walker (community): Approve
-
Diff: 72 lines (+24/-8)3 files modifieddebian/changelog (+13/-0)
debian/vsftpd.postinst (+8/-5)
debian/vsftpd.upstart (+3/-3)
summary: |
- package vsftpd (not installed) failed to install/upgrade: subprocess - installed post-installation script returned error exit status 1 + vsftpd postinstall checks for user/group starting with ftp |
Changed in vsftpd (Debian): | |
status: | Unknown → New |
Changed in vsftpd (Debian): | |
status: | New → Fix Released |
Changed in vsftpd (Ubuntu Lucid): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in vsftpd (Ubuntu Maverick): | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in vsftpd (Ubuntu Natty): | |
status: | Confirmed → Fix Released |
description: | updated |
Changed in vsftpd (Ubuntu Lucid): | |
assignee: | nobody → Andres Rodriguez (andreserl) |
status: | Confirmed → In Progress |
Changed in vsftpd (Ubuntu Lucid): | |
status: | In Progress → Confirmed |
assignee: | Andres Rodriguez (andreserl) → nobody |
tags: |
added: verification-done removed: verification-needed |
tags: |
added: verification-done removed: verification-needed |
Thanks for reporting this bug and helping to make ubuntu
better. This is interesting - it looks as though the install
script thought that you already had a user and group named
ftp. I suspect you have a group which starts with 'ftp'. Can
you please provide the output of
getent group | grep "^ftp"
To work around this, you should be able to simply create the
ftp user and group that it wanted to create. Then re-install
the package.
However, this is a real bug in the postinst script which will
need to be fixed. The '| grep "^${_USERNAME}"' must be
switched to "| grep "^${_USERNAME}:".