1.新建ftp用户:ftptest
> useradmin user add ftptest -g Users
2.查看并保存/etc/passwd的内容
> rdfile /etc/passwd
root:_J9..7w2Uydu6G1yWY4E:0:1::/:
pcuser::65534:65534::/:
nobody::65535:65535::/:
ftp::65533:65533:FTP Anonymous:/home/ftp:
从上述文件可以看到,格式是:用户名:密码:UID:GID::目录:
3.生成加密后的ftptest用户的密码
> cifs passwd pass1234
password is _J9..NapU4yybn/zXP9.
4.将ftptest用户写入/etc/passwd,指定/vol/vol1为ftp的根目录,将其UID和GID设置为0:1
> wrfile /etc/passwd
root:_J9..7w2Uydu6G1yWY4E:0:1::/:
pcuser::65534:65534::/:
nobody::65535:65535::/:
ftp::65533:65533:FTP Anonymous:/home/ftp:
ftptest:_J9..NapU4yybn/zXP9.:0:1::/vol/vol1/:
5.查看现有的ftpd
> options ftpd
ftpd.3way.enable off
ftpd.anonymous.enable off
ftpd.anonymous.home_dir
ftpd.anonymous.name anonymous
ftpd.auth_style mixed
ftpd.bypass_traverse_checking off
ftpd.dir.override
ftpd.dir.restriction off
ftpd.enable off
ftpd.explicit.allow_secure_data_conn on
ftpd.explicit.enable off
ftpd.idle_timeout 900s (value might be overwritten in takeover)
ftpd.implicit.enable off
ftpd.ipv6.enable off
ftpd.locking none
ftpd.log.enable on
ftpd.log.filesize 512k
ftpd.log.nfiles 6
ftpd.max_connections 500 (value might be overwritten in takeover)
ftpd.max_connections_threshold 0% (value might be overwritten in takeover)
ftpd.tcp_window_size 28960
6.启用ftp
> options ftpd.enable on
Thu Sep 29 16:34:05 CST [FAS2040-01-A: ftpd.service.on:info]: The FTP subsystem started.
> options ftpd.dir.restriction on
阅读(3338) | 评论(0) | 转发(0) |