Vsftp安装和配置

| | 评论(0) | 引用通告(0)

备忘。

Firstly, I install vsftp from RPM on my RedHat EL3. I tried to install vsftp 2.0.5 from source code, but it has a bug in "make install" - two directory were not created automatically. Althought by manually making the directories I can bypass this problem, I just lost confidence in it.

Secondly, I enable vsftp autorun by running "setup" utility and enable service "vsftpd". If you can not find "vsftpd" in setup page, check your installation. ( How to enable autorun of vsftp with command line?)

Thridly, change the config file. For me it is /etc/vsftpd/vsftpd.conf. It could be /etc/vsftpd.conf, check the readme of your installation package (How to define the path of the config file? Edit the source code?).

Last, check the home directory of user "ftp" from group "ftp", which was created by vsftp installer. It is /var/ftp/ in default, you can run "users and groups" in KDE menu to change the path. Create directory "incoming" under /var/ftp and change priviledge value to 744.

Now run "/sbin/service vsftpd start" to start vsftp. Anonymous acccount is allowed and he/she can upload to /incoming.

What I add to the vsftpd.conf:

anonymous_enable=YES
write_enable=YES
anon_mkdir_write_enable=YES
anon_other_write_enable=YES
# 匿名上传新生成文件/目录掩码。这个很奇怪,正常应该用077或者022。
# 按说用077,匿名上传生成目录是700,在新生成目录里应该可以再上传,可是我这里就是不行
anon_umask=011

local_enable=YES
local_umask=022

max_clients=200
max_per_ip=8

# 在FTP client里看到的时间缺省是零时区时间,我要本地时间
use_localtime=YES

# 抄的,看不懂...这个service名字在这改能起作用么?
pam_service_name=vsftpd
userlist_enable=YES

#enable standalone mode,用了这个仍然可以以service方式启动
listen=YES
tcp_wrappers=YES

分类

引用通告(0)

被引用的日记: Vsftp安装和配置

TrackBack URL for this entry: http://www.debagua.net/cgi-bin/mt4/mt-tb.cgi/35
如果您想引用这篇日记到您的Blog,
请复制上面的链接,放置到您发表文章时的相应界面中。

发表评论

关于此日记

此日记由mach发表于2006年12月27日 23:19

此Blog上的上一篇日记Candy Angle

此Blog上的下一篇日记冬日的蔷薇

主索引归档页可以看到最新的日记和所有日记。

Powered by Movable Type 4.0