AIX中使用ftp服务(添加ftp用户,权限设置)

 

关键字: aix ftp

1.创建目录/var/ftp

# mkdir /var/ftp

 

2.建立ftp组 ftpgrp

# mkgroup ftpgrp

 

3.建立用户myftp

# mkuser home=/var/ftp shell=/usr/bin/bsh su=false ftp

 

4.设定目录属性

# chown -R ftp:ftpgrp /var/ftp

# chmod 755 /var/ftp

 

5.设置用户密码

# passwd ftp

 

6.激活用户

使用ftp用户登录aix系统,重新设置密码;

或者直接修改aix配置,不用重置密码即可使用(待查资料)

 

普通用户使用FTP必备条件

 

Before the ftpd daemon can transfer files for a client process, it must authenticate the client process. The ftpd daemon authenticates client processes according to these rules:

 

The user must have a password in the password database, /etc/security/passwd. (If the user's password is not null, the client process must provide that password.)

The user name must not appear in the /etc/ftpusers file.

The user's login shell must appear in the shells attribute of the /etc/security/login.cfg file.

If the user name is anonymous, ftp or is a defined anonymous user in the /etc/ftpaccess.ctl file, an anonymous FTP account must be defined in the password file. In this case, the client process is allowed to log in using any password. By convention, the password is the name of the client host. The ftpd daemon takes special measures to restrict access by the client process to the anonymous account.

注意:在创建用户时要设置密码.确认在普通用户可su到要使用FTP的普通用户.