您的位置:首页 > 大数据 > 人工智能

AIX下安装proFTPD-支持虚拟用户和SFTP

2013-03-11 16:46 381 查看
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方式访问
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: