vsftpd.conf
user_config_dir = /etc/vsftpd/userconf''
/etc/vsftpd/userconf/john
При попытке переименовать директорию или файл выдаётся ошибка "550 Permission Denied"
Добавляем опцию anon_other_write_enable
If set to YES, anonymous users will be permitted to perform write operations other than upload and create directory, such as deletion and renaming. This is generally not recommended but included for completeness.
Default: NO
The FTP server wants to know whether to use a port-mode channel or passive-mode data channel. Most clients will set this up for you transparently (and generally choose passive 'cos it's newer and better). To send a command to the server you use the 'quote' command. Hence if you type:
quote PASV
then it should all work nicely. As an aside, if you type 'remotehelp' then it should show you all the commands that the server can receive - all these can be used with the 'quote' command.
Исходные данные CentOS 6, vsftpd
Опция | Значение по-умолчанию | Описание опции |
---|
http://www.davekb.com/browse_computer_tips:vsftpd_xferlog_format:txt
yum install vsftpd chkconfig vsftpd on
https://wiki.debian.org/ru/vsftpd/EXAMPLE/VIRTUAL_USERS
anonymous_enable=NO # запретить вход анонимным пользователям local_enable=YES # разрешить доступ локальным учетным записям write_enable=YES # разрешить запись ftpd_banner=Battlecruiser operational # сообщение, которое выводится при коннекте
1
1
# iptables -I INPUT -m state --state NEW -m tcp -p tcp --dport 20 -j ACCEPT # iptables -I INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j ACCEPT
via http://xsektorx.org/vsftpd
vsftpd.conf
user_config_dir=/etc/vsftpd/users
/etc/vsftpd/users/username
cmds_allowed=CDUP,CWD,FEAT,HELP,LIST,MDTM,MLSD,MLST,NLST,NOOP,PASS,PASV,PWD,QUIT,SIZE,STAT,USER,XCUP
seccomp_sandbox=NO in vsftpd.conf
http://serverfault.com/questions/574722/vsftp-error-500-oops-child-died
Добавить в конфиг
listen = YES
Добавить в конфиг
force_dot_files = YES
Ошибка при запуске service vsftpd start получаем сообщение 500 OOPS: munmap
Баг - https://bugs.launchpad.net/ubuntu/+source/vsftpd/+bug/1313450
Обсуждение