vsFTPd 2.3.5 버전에서 ftp 오류 발생

상태:에 연결…
상태: 연결 수립, 환영 메시지를 기다림…
응답: 220 (vsFTPd 2.3.5)
명령: USER root
응답: 331 Please specify the password.
명령: PASS *******
응답: 530 Login incorrect.
오류: 치명적 오류
오류: 서버에 연결하지 못함

sudo apt-get remove --purge vsftpd
후 다시 설치

sudo apt-get install vsftpd

# ——————————————————————————
# SETUP FTP USERS ————————————————————–
# ——————————————————————————

# create the ftp users and lock them to the website directories
useradd -d /srv/www/[website/appname] -m [ftp user name]

# set the ftp account passwords
passwd [ftp user name]

# add the ftp users to the www-data user/group
adduser [ftp user name] www-data

# BUG FIX: 500 OOPS: vsftpd: refusing to run with writable root inside chroot()
sudo add-apt-repository ppa:thefrontiergroup/vsftpd
sudo apt-get update
sudo apt-get install vsftpd

# if sudo add-apt-repository command not found ubuntu
sudo apt-get install software-properties-common python-software-properties

root@auctionpro:/data# sudo add-apt-repository ppa:thefrontiergroup/vsftpd
 vsftpd 2.3.5 with the allow_writeable_chroot feature backported from vsftpd 3.
 더 많은 정보: https://launchpad.net/~thefrontiergroup/+archive/ubuntu/vsftpd
계속하려면 [엔터] 키를 누르시고 추가를 취소하려면 컨트롤+C 키를 눌러주십시오

gpg: keyring `/tmp/tmp5qt3klpc/secring.gpg' created
gpg: keyring `/tmp/tmp5qt3klpc/pubring.gpg' created
gpg: requesting key C855587C from hkp server keyserver.ubuntu.com
gpg: /tmp/tmp5qt3klpc/trustdb.gpg: trustdb created
gpg: key C855587C: public key "Launchpad PPA for The Frontier Group" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)

# Edit the vsftpd.conf and append this setting to the end of the file to keep users’ jailed!
nano /etc/vsftpd.conf

# add all of the text between the starting [[ and ending ]]
# Keep non-chroot listed users jailed

# Example config file /etc/vsftpd.conf
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
# Run standalone?  vsftpd can run either from an inetd or as a standalone
# daemon started from an initscript.

# Run standalone with IPv6?
# Like the listen parameter, except vsftpd will listen on an IPv6 socket
# instead of an IPv4 one. This parameter and the listen parameter are mutually
# exclusive.
# Allow anonymous FTP? (Disabled by default)
# Uncomment this to allow local users to log in.
# Uncomment this to enable any form of FTP write command.
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
# If enabled, vsftpd will display directory listings with the time
# in  your  local  time  zone.  The default is to display GMT. The
# times returned by the MDTM FTP command are also affected by this
# option.
# Activate logging of uploads/downloads.
# Make sure PORT transfer connections originate from port 20 (ftp-data).
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#chroot_local_user or
# chroot_list_enable below.
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
# (Warning! chroot'ing can be very dangerous. If using chroot, make sure that
# the user does not have write access to the top level directory within the
# chroot)
# (default follows)
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
# Customization
# Some of vsftpd's settings don't fit the filesystem layout by
# default.
# This option should be the name of a directory which is empty.  Also, the
# directory should not be writable by the ftp user. This directory is used
# as a secure chroot() jail at times vsftpd does not require filesystem
# access.
# This string is the name of the PAM service vsftpd will use.
#2013-09-29 vsftpd->ftp

# Show hidden files and the "." and ".." folders.
# Useful to not write over hidden files:

# Hide the info about the owner (user and group) of the files.

# Connection limit for each IP:

# Maximum number of clients:

## end

# This option specifies the location of the RSA certificate to use for SSL
# encrypted connections.
# This option specifies the location of the RSA key to use for SSL
# encrypted connections.

# Enable (only) guests.
# This is not needed, it's the default. Just here for clarity.
# Where the guests (virtual) usernames are set.


# restart the service for changes to take effect
sudo service vsftpd restart

#test ftp via secondary terminal window:
ftp [ftp user name]@[server ipaddress] [ftp port]


1. Go to /etc/apt and post exactly what you have there. In terminal:



2. Make sure, if you do have a sources.list, back it up:


This should return an error if you truly don’t have a sources.list.

3. If this returns an error, try using one of the backup or savefiles. Open each to see if one (or both) match the distribution you are using (Hardy or Intrepid probably), then:




depending on which one is the one you wish/need to use.

If you have any problems or questions during this process, please, post back here before continuing.

4. When you are satisfied your sources.list is restored:


Good luck! Keep us updated.


~# sudo apt-get remove vsftpd
패키지 목록을 읽는 중입니다… 완료
의존성 트리를 만드는 중입니다
상태 정보를 읽는 중입니다… 완료
다음 패키지를 지울 것입니다:
0개 업그레이드, 0개 새로 설치, 1개 제거 및 61개 업그레이드 안 함.
1개를 완전히 설치하지 못했거나 지움.
이 작업 후 361 k바이트의 디스크 공간이 비워집니다.
계속 하시겠습니까? [Y/n] y
(데이터베이스 읽는중 …현재 99720개의 파일과 디렉터리가 설치되어 있습니다.)
Removing vsftpd (3.0.2-1ubuntu2.14.04.1) …
invoke-rc.d: dangling symlink: /etc/rc2.d/S20vsftpd
dpkg: error processing package vsftpd (–remove):
설치한 pre-removal 스크립트 하위 프로세스가 오류 102번을 리턴했습니다
invoke-rc.d: dangling symlink: /etc/rc2.d/S20vsftpd
dpkg: 정리하는 중에 오류가 발생했습니다:
설치한 post-installation 스크립트 하위 프로세스가 오류 102번을 리턴했습니다
처리하는데 오류가 발생했습니다:
E: Sub-process /usr/bin/dpkg returned an error code (1)

Seems like Rudi (a colleague) helped me solve the problem, here are the steps.

– got inside this folder by: $ cd /etc/rc2.d/
– and checked all the links, particularly to see the link between K09samba and samba by: $ ls -al (this is what we found S20vsftpd -> /vsftpd)
– then removed K09samba by: $ sudo rm S20vsftpd
– then removed samba by: $ sudo apt-get remove -f vsftpd
– we then did this: sudo apt-get -f install (might not do anything)
– the install samba: $sudo apt-get install vsftpd
– and created the soft link: $ sudo ln -s ../init.d/vsftpd S20vsftpd
Then everything worked. We followed the same procedure in rc3.d strating changing the directory.
Edit/Delete Message


I had the same problem here but doing:


and then reinstalling sorted it out. Must have been something in my vsftpd conf.

p.s. builtbylane the process shown in your comment is the “grep” command itself not the vsftpd daemon.