1、编译安装
注意:
(1)依赖环境openssl,zlib,下载包参考http://www.perzl.org/aix/index.php?n=Main.Proftpd
(2)proFTPD×××地址:http://www.proftpd.org/
install_user=nocard install_group=app ./configure --prefix=/cmsp/usr/nocard/proftpd --without-pam --disable-auth-pam --enable-openssl --with-modules=mod_ratio:mod_readme:mod_sftp:mod_quotatab:mod_quotatab_file
make
make install
2、虚拟用户及SFTP配置
cd sbin
cp ../../proftpd-1.3.4b/contrib/ftpasswd .
cp ../../proftpd-1.3.4b/contrib/ftpquota .
(1)添加虚拟用户
cd /cmsp/usr/nocard/proftpd/
mkdir data
cd data
chmod 777 *
./ftpasswd --passwd --name=biankai --uid=2001 --home=/cmsp/usr/nocard/proftpd/data/biankai --shell=/usr/bin/ksh --file=/cmsp/usr/nocard/proftpd/etc/passwd
(2)添加虚拟用户组
./ftpasswd --group --file=/cmsp/usr/nocard/proftpd/etc/group --name=test --gid=2001
(3)添加用户到组中
./ftpasswd --group --file=/cmsp/usr/nocard/proftpd/etc/group --name=test --gid=2001 --member=biankai
(4)vi ~/proftpd/etc/proftpd.conf
#增加如下内容
#虚拟用户权限认证
AuthOrder mod_auth_file.c
AuthUserFile /cmsp/usr/nocard/proftpd/etc/passwd
AuthGroupFile /cmsp/usr/nocard/proftpd/etc/group
#sftp支持
SFTPEngine On
SFTPHostKey /etc/ssh/ssh_host_rsa_key
SFTPHostKey /etc/ssh/ssh_host_dsa_key
3、前台方式启动(以root用户启动):
./proftpd -n -d2
4、客户端选择SFTP方式访问
AIX下安装proFTPD-支持虚拟用户和SFTP
精选 转载Aaronhoward 博主文章分类:AIX
上一篇:AIX交换空间
下一篇:AIX中的bash颜色与提示
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
FreeBSD下ports安装proftpd
若是续前一个FreeBSD+apache+php+mysql的ports安装,直接跳到第二
mysql sed sql 数据库 用户组