|
|
我的linux是suse9.3,安装了一个proftpd1.2.10,安装到了/usr/local/下,启动的时候我是切换到root权限下,然后进入/usr/local/sbin,执行./profptd,启动是正常的,但是关闭的时候不知道如何关闭。我在/usr/local/sbin下执行./ftpshut他提示:usage: ./ftpshut [ -R ] [ -l min ] [ -d min ] time [ warning-message ... ],我是新手,不知道该怎么办,请指教!!
另外就是我在本机上可以访问proftpd服务器,但是跟我一个局域网内的人没法访问(直接就连不上我的机子),是不是我的proftpd.conf错了,请高手帮我看下。下面是我的proftpd.conf文件:
---------------------------------------------------------------
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.
ServerName "TEST FTP"
ServerType standalone
DefaultServer on
# Don't resolve name, it can reduce connect time
# UserReverseDNS off
# IdentLookups off
# Port 21 is the standard FTP port.
Port 21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022
# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd).
MaxInstances 30
# Set the user and group under which the server will run.
User nobody
Group nogroup
# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
# 我在/home/guest/目录下建了个ftp的目录
DefaultRoot ~ftp
# Normally, we want files to be overwriteable.
<Directory /*>
AllowOverwrite on
</Directory>
# Bar use of SITE CHMOD by default
<Limit SITE_CHMOD>
DenyAll
</Limit>
# A basic anonymous configuration, no upload directories. If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
<Anonymous ~ftp>
User ftp
Group ftp
# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp
# Limit the maximum number of anonymous logins
MaxClients 10
# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
DisplayLogin welcome.msg
DisplayFirstChdir .message
# Limit WRITE everywhere in the anonymous chroot
<Limit WRITE>
DenyAll
</Limit>
</Anonymous>
# A user need username and password to login.
# 我想建一个拥有上传权限的用户guest,这个用户就是我平时登录我自己的机子时候使用的帐号,
# 他默认是users组的
<Anonymous /home/guest/ftp>
User guest
Group users
# We want clients to be able to login with "ftpuser" as well as "guest"
UserAlias ftpuser guest
# Limit the maximum number of logins
MaxClients 5
# We want clients to be required password to login.
AnonRequirePassword on
# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
DisplayLogin welcome.msg
DisplayFirstChdir .message
# We want clients are in LAN
# 我只想局域网内的用户访问,我们局域网的ip地址是dhcp服务器分配的,是192.168.段上的
<Limit LOGIN>
Order allow, deny
Allow from 192.168.*.*
Deny from all
</Limit>
# We want neo can write in directory
# 允许写和读的权限
<Directory /home/guest/ftp>
<Limit WRITE READ>
AllowAll
</Limit>
</Directory>
</Anonymous> |
|