- 论坛徽章:
- 0
|
我在ubuntu8.10 x86下用vsftp建立一个ftp服务器,打算用于公司内部文件存取,不出外网,所以不怎么担心权限过大的问题,大概有如下要求:
1。匿名用户可以上传/下载文件,创建文件夹
2。本地用户可以进入FTP文件夹管理内容(必须是root用户么)
如果可以很简单的实现,还有地三个要求
3。我想让特定用户(比如一个部门)限定在某一个文件夹下,不允许更改其他文件夹
可是现在我建立了服务器后,在自己的电脑上匿名登录ftp,可以下载文件,不能上传,这是怎么回事?我已经把能打开的权限,全都打开了,sudo ufw disable 回复:防火墙在系统启动时自动禁用。那就是说跟防火墙没有关系了。实在想不明白为什么了,看遍了有关帖子,没有找到答案。
还有一个这个,不明白
root@robert-desktop:~# vsftpd
500 OOPS: could not bind listening IPv4 socket
还有一个比较奇怪的现象,我安装完vsftp后,系统在/home下建立了一个/ftp文件夹,可是网上都说在/var/ftp,不知为何?
而且,我的vsftpd.conf文件在/etc下,而非大家所说的/etc/vsftpd下,我的/etc下就没有/vsftpd这个文件夹,又是为何?
下边就是我的/etc/vsftpd.conf文件内容:
# Example config file /etc/vsftpd.conf
listen=YES
anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
anon_upload_enable=YES
anon_mkdir_write_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
idle_session_timeout=300
data_connection_timeout=120
async_abor_enable=YES
ftpd_banner=Welcome to ROBERT.LU FTP service.
ls_recurse_enable=YES
# Debian customization
#
# Some of vsftpd's settings don't fit the Debian filesystem layout by
# default. These settings are more Debian-friendly.
#
# 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.
secure_chroot_dir=/var/run/vsftpd
#
# This string is the name of the PAM service vsftpd will use.
pam_service_name=vsftpd
#
# This option specifies the location of the RSA certificate to use for SSL
# encrypted connections.
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
# This option specifies the location of the RSA key to use for SSL
# encrypted connections.
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
说了这么多,不知道大牛们看清楚了没有,我实在是尽力想说明白了,请求帮助!
[ 本帖最后由 robert-kiss 于 2009-4-29 10:47 编辑 ] |
|