proftpd安装,新增用户配置访问权限

阅读更多
tar -zxvf proftpd-1.3.3e.tar.gz 进行解压
cd proftpd-1.3.3e 进入文件夹
./configure --prefix=/usr/local/proftpd
make
make install

groupadd sunftpgroup
useradd -g sunftpgroup -d /var/ftp -s /sbin/nologin sunftp
passwd 123456

cp contrib/dist/rpm/proftpd.init.d /etc/rc.d/init.d/proftpd

vi /etc/rc.d/init.d/proftpd
PATH="$PATH:/usr/local/proftpd/sbin:/usr/local/proftpd/bin"

//设置为可执行文件
chmod +x /etc/rc.d/init.d/proftpd

vi /usr/local/proftpd/etc/proftpd.conf

ServerName                      "ProFTPD"
ServerType                      standalone
ServerIdent 					off
DefaultServer                   on

Port				21

Umask				022

MaxInstances			30

User				sunftp
Group				sunftpgroup

DefaultRoot /var/ftp

AllowOverwrite		on


   HideNoAccess         off
	
       Order            deny,allow
       AllowUser        sunftp
	



测试一下吧;

对了,别忘记先关闭 iptalbes啊。默认它是禁用FTP端口的,如果这只开21还不行,我只好先关闭iptalbes了。




你可能感兴趣的:(proftpd)