From: Vyacheslav Brunev <bv@gres.tomske.elektra.ru>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: [Comm] vsftpd и chown?
Date: Wed, 14 May 2008 09:16:03 +0700
Message-ID: <200805140916.03837.bv@gres.tomske.elektra.ru> (raw)
Здравствуйте уважаемое сообщество!
Решил испробовать vsftpd из репозитория АЛЬТ 4.0 branch и столкнулся с проблемой. VSFTPD вообще не реагирует на
инструкции в конфигурационном файле:
chown_uploads=YES
chown_username=ftp.
Поясню, у меня для закачки пользователям anonymous выделена директория "upload":
ls -la /var/ftp/ | grep upload
drwxrwsr-t 10 ftp ftpadmin 4096 Май 14 08:55 upload
как здесь видно владелец директоии пользователь ftp со всеми необходимыми правами, но закачать в эту директорию анонимам
не получается т.к. vsftpd не подменяет пользователя на ftp, а льёт от имени пользователя vsftpd никак не реагируя на
опции в своём-же конфиге.
Как можно порешать сложившуюся ситуацию?
##################
cat /etc/vsftpd/conf
pasv_enable=YES
anonymous_enable=YES
write_enable=YES
pasv_min_port=49152
pasv_max_port=65535
anon_upload_enable=YES
anon_mkdir_write_enable=YES
dirmessage_enable=YES
connect_from_port_20=YES
chown_uploads=YES
chown_username=ftp
idle_session_timeout=600
data_connection_timeout=120
nopriv_user=novsftpd
ascii_upload_enable=NO
ascii_download_enable=NO
deny_email_enable=YES
banned_email_file=/etc/vsftpd/banned_emails
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list
ls_recurse_enable=NO
hide_ids=YES
use_localtime=YES
anon_other_write_enable=YES
download_enable=YES
banner_file=/etc/vsftpd/banner_file
log_ftp_protocol=YES
##################
cat /etc/xinetd.d/vsftpd
service ftp
{
disable = no
socket_type = stream
protocol = tcp
wait = no
user = root
nice = 10
rlimit_as = 64M
server = /usr/sbin/vsftpd
server_args = /etc/vsftpd/conf
per_source = 4
instances = 30
banner_fail = /etc/vsftpd/banner_fail
log_on_success += PID HOST DURATION
}
###################
cat /etc/xinetd.conf
defaults
{
log_type = SYSLOG authpriv info
log_on_success = PID HOST DURATION
log_on_failure = HOST
instances = 100
per_source = 5
# only_from = 127.0.0.1
}
##################
rpm -qa | egrep "(xinetd|vsftpd)"
xinetd-2.3.14-alt2
vsftpd-2.0.5-alt3
--
С уважением, Вячеслав.
next reply other threads:[~2008-05-14 2:16 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-14 2:16 Vyacheslav Brunev [this message]
2008-05-14 5:52 ` Andrew Borodin
2008-05-14 9:02 ` Vyacheslav Brunev
2008-05-14 9:17 ` Andrew Borodin
2008-05-14 9:44 ` Vyacheslav Brunev
2008-05-14 10:16 ` Andrew Borodin
2008-05-15 1:28 ` Vyacheslav Brunev
2008-05-19 5:39 ` Vyacheslav Brunev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200805140916.03837.bv@gres.tomske.elektra.ru \
--to=bv@gres.tomske.elektra.ru \
--cc=community@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git