|
|
想建一个Redhat9+proftpd1.2.9的FTP服务器。不想开匿名用户,只想让系统用户登陆。现在服务器已经可以工作了但是系统用户登陆以后无法上传文件及建立目录就象没有写的权限似的。。
配置文件如下:
- [root@cnc-zg-nat etc]# more 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 "Wellcome to hellozwz's FTP" #服务器的名称
- ServerType standalone #服务器的服务方式(系统服务/inetd连接)ServerType
- standalone/inetd
- DefaultServer on #默认服务
- # 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. #proftpd在做为服务时的用户名和组名
- User nobody
- Group nobody
- # To cause every FTP user to be "jailed" (chrooted) into their home
- # directory, uncomment this line.
- DefaultRoot ~ #根目录设定,可以用/home也可用~,可以使用户不能向上到
- 根目录下
- # Normally, we want files to be overwriteable. #目录的权力
- <Directory />
- AllowOverwrite on
- </Directory>
- # A basic anonymous configuration, no upload directories. If you do not
- # want anonymous users, simply delete this entire <Anonymous> section.
- [7m--More--(77%)[m
- #<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>
复制代码
麻烦帮看一下那儿修改的有问题。。 就是想实现比如系统里有个叫aaa的用户它
的主目录是/home/aaa 让aaa在访问FTP的时候被锁定在/home/aaa下aaa可以在/home/aaa下随便上传下载。。。
多谢了。。 |
|