LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: 北南南北

用vsFTPd自架Linux网络安装服务器[不断更新]

[复制链接]
发表于 2003-6-7 17:23:04 | 显示全部楼层
faint ,我搞定了,
   原来是那些我要让别人下载的文件属性不对,是 r---------的问题,
   改成-r--r--r--就可以拉
发表于 2003-6-9 16:54:08 | 显示全部楼层
行了,这次虚拟用户终于搞定了,不过我没有做hosts那一步。

我还有两个问题要问版主。
一、我怎么为不同的虚拟用户设置不同的权限,例如我要开一个具有上传权限的帐户,再开三个具有下载权限的帐户,每个下载帐户下载的速率是不一样的,或者下载的目录不一样。

二、如果我建好了这个FTP服务器后,怎么才能远程维护,例如添加帐户或是修改权限。
发表于 2003-6-9 22:24:01 | 显示全部楼层
发表于 2003-6-10 16:32:25 | 显示全部楼层
我的vsftpd不能启动该如何解决:
[root@mis006 etc]# find -name vsftpd
./xinetd.d/vsftpd
./pam.d/vsftpd
[root@mis006 etc]# service vsftpd restart
vsftpd: unrecognized service
[root@mis006 etc]# cd init.d
[root@mis006 init.d]# ls vsftpd
ls: vsftpd: No such file or directory
 楼主| 发表于 2003-6-10 21:52:27 | 显示全部楼层
我的vsftpd不能启动该如何解决:
[root@mis006 etc]# find -name vsftpd
./xinetd.d/vsftpd
./pam.d/vsftpd
[root@mis006 etc]# service vsftpd restart
vsftpd: unrecognized service
[root@mis006 etc]# cd init.d
[root@mis006 init.d]# ls vsftpd
ls: vsftpd: No such file or directory

是用什么方式启动的???如果用xinetd,不用运行vsftpd,如果有改文件,直接运行 一下xinetd就行。

仔细看前面的帖子。


不行了,我想把ftp目录改到/mnt/windows_f/ftpserver/ftp下,
[root@Seeall tool]# useradd -d /mnt/windows_f/ftpserver/ftp -g ftp -s /sbin/nologin ftp
useradd: unknown group ftp
而且因为在删ftp用户时少了个参数 -r
现在不能用ftp了

直接把用户删除,再添加上就行,添加时不要忘记把用户目录也加上。

ftp> open 10.0.130.67
Connected to 10.0.130.67.
500 OOPS: vsftpd: cannot locate user specified in 'ftp_username'

现在该怎么办??
发表于 2003-6-11 19:28:54 | 显示全部楼层
经典贴~
发表于 2003-6-13 09:25:36 | 显示全部楼层

如果我想用xinetd模式启动vsftp,配置文件要改什么吗?用什么命令启动,我用的是redhat8.0

还有,standalone模式是否要独占一个终端,不能做其他事情啊?启动后,ftp连通了,但是不能做其他事情了,只能另开一个终端。
发表于 2003-6-13 12:02:40 | 显示全部楼层
1.ntsysv 选中vsftp
/etc/init.d/xinetd restart
2.不是,起动后完全可以做其它的事儿,它是个多用户,多任务的操作系统 
发表于 2003-6-13 15:44:41 | 显示全部楼层

不能登入vsftp

我用以下的 vsftpd.conf 放在rh9 內執行後用local user不能
登入, 經常說login incorrect, 但相同的 conf file ,放在
其他的 rh9 , 用local user 登入又沒有問題,
為什麼?


# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are very paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
#
# Allow anonymous FTP?
anonymous_enable=no
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# 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)
local_umask=022
#
# 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.
#anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
#anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# 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!
#chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format
xferlog_std_format=YES
#
# You may change the default value for timing out an idle session.
#idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
#data_connection_timeout=120
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
#
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that turning on ascii_download_enable enables malicious remote parties
# to consume your I/O resources, by issuing the command "SIZE /big/file" in
# ASCII mode.
# These ASCII options are split into upload and download because you may wish
# to enable ASCII uploads (to prevent uploaded scripts etc. from breaking),
# without the DoS risk of SIZE and ASCII downloads. ASCII mangling should be
# on the client anyway..
#ascii_upload_enable=YES
#ascii_download_enable=YES
#
# You may fully customis
ftpd_banner=Welcome
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
pam_service_name=vsftpd
发表于 2003-6-18 10:25:35 | 显示全部楼层
我写个.message文件放到对于目录中。文字都是中文。可是发现
windows下登陆上去显示中文都是乱码这要如何修改?
还就是我新建一个FTP用户,可是为什么这个用户不能上传文件?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表