FTP服务的配置与管理_第1页
FTP服务的配置与管理_第2页
FTP服务的配置与管理_第3页
FTP服务的配置与管理_第4页
FTP服务的配置与管理_第5页
已阅读5页,还剩14页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

Vsftpd 服务器的配置主要通过修改其主配置文件 Vsftpd conf 完成 需要 注意的是 更改 vsftpd conf 文件后 必须重启 Vsftpd 服务才能使设置生效 11 3 1 配置配置 vsftpd conf 文件文件 Vsftpd 的主配置文件 vsftpd conf 位于 etc 目录下 vsftpd conf 文件决 定了 Vsftpd FTP 服务器的主要操作 vsftpd conf 文件由若干配置选项组成 下面介绍其中重要的配置选项 anonymous enable NO YES 是否允许 anonymous 登录 FTP 服务器 默认设置为 YES 允许 local enable NO YES 是否允许本地用户登录 FTP 服务器 默认设置为 YES 允许 write enable NO YES 是否允许用户对 FTP 服务器文件具有写权限 默认设置为 YES 允许 local umask 022 或者其他值 设置本地用户的文件生成掩码 默认值为 077 也可以根据个人喜好将其设 置为其他值 anon upload enable NO YES 是否允许匿名用户上传文件 默认设置为 YES 允许 anon mkdir write enable NO YES 是否允许匿名用户创建新文件夹 默认设置为 YES 允许 dirmessage enable YES 是否激活目录欢迎信息功能 当用户首次访问服务器上某个目录时 FTP 服 务器将显示欢迎信息 默认情况下 欢迎信息是通过目录下的 message 文件获 得的 xferlog enable YES 是否启用上传和下载日志的功能 ftpd banner Welcome to blah FTP service 在 FTP 服务器中设置欢迎登录信息 当用户登录到 FTP 服务器后 会看到 欢迎信息 Welcome to blah FTP service chroot list enable NO YES chroot list file etc vsftpd chroot list chroot 是 FTP 服务器配置中的重要选项 若 chroot list enable 设置为 YES Vsftpd 将在 chroot list file 选项值的位置寻找 chroot list 文件 etc vsftpd chroot list 文件中包含的用户 在登录 后将不能切换到自己目录以外的其他目录 由 FTP 服务器自动地 chrooted 到用户自己的 home 目录下 这将使得 chroot list 文件中的用户不能随意转到 其他用户的 FTP home 目录下 从而有利于 FTP 服务器的安全管理和隐私保护 userlist enable NO YES userlist deny NO YES userlist enable 选项默认值为 NO 此时 ftpusers 文件中的用户 禁止登录 FTP 服务器 如果 userlist enable 设置为 YES 则 user list 文 件中的用户允许登录 FTP 服务器 而如果同时设置了 userlist deny 值为 YES 则 user list 文件中的用户将不允许登录 FTP 服务器 listen YES 如果设置为 YES 则 Vsftpd 将以独立模式运行 由 Vsftpd 自己监听和 处理连接请求 11 3 2 vsftpd ftpusers 与与 vsfptd user list 文件配置文件配置 在 etc 目录下的 vsftpd ftpusers 和 vsftpd user list 两个文件与主配 置文件中的 userlist enable 和 userlist deny 选项有着密切联系 两 个文件中 每个用户名需占用一行 以下是默认情况下 ftpusers 文件的内容 Users that are not allowed to login via ftp root bin daemon adm lp sync shutdown halt mail news uucp operator games nobody 以下是默认情况下 user list 文件的内容 vsftpd userlist If userlist deny NO only allow users in this file If userlist deny YES default never allow users in this file and do not even prompt for a password Note that the default vsftpd pam config also checks etc vsftpd ftpusers for users that are denied root bin daemon adm lp sync shutdown halt mail news uucp operator games nobody 比较两个文件的内容 会发现它们实际上是一样的 在使用两个文件时的区别在于 当 userlist enable 为 YES 时 如果一个用户名在 vsftpd user list 文件中 而同时 userlist deny 选项为 YES 则该用户在试图登录 FTP 服务器时 将不能够登录 甚至连输入密码的提示信息都没有 直接被 FTP 服务器拒绝 而如果一个用户名在 vsftpd ftpusers 文件中 同时 userlist deny 选 项为 YES 则该用户在试图登录FTP 服务器时 将能看到输入密码的提示 但 即使正确输入密码仍然不能登录FTP 服务器 userlist deny 选项和 user list 文件一起能够有效地阻止 root apache 和 www 等系统用户登录 FTP 服务器 从而保证了 FTP 服务器的分 级安全性 11 3 3 匿名匿名 FTP 设置设置 在登录 FTP 服务器的用户不确定的情况下 应将 FTP 服务器设置为允许匿 名账号登录的 FTP 服务器 启用匿名账号 并对匿名账号服务进行管理是匿名 FTP 设置的主要内容 1 启用匿名账号 启用匿名账号 启用匿名账号及之后其他配置 均需要对vsftpd conf 文件进行修改 因此 在开始配置之前应当备份 etc vsftpd vsftpd conf 文件 以便于在修改过程中 出现无法恢复的错误时 能够恢复到初始设置 对 etc vsftpd vsftpd conf 文件做如下修改 anonymous enable YES local enable YES write enable YES listen YES 配置好后 需要重新启动 Vsftpd 完成上述配置后 Vsftpd 将允许匿名账号登录 FTP 服务器 允许本地账号登录 同时允许匿名用户具有对 FTP 服务器文件的写权限 并且只 能下载文件而不能上传 匿名用户的口令为一个 E mail 地址 测试的结果如下 ftp localhost Connected to 220 vsFTPd 2 0 5 530 Please login with USER and PASS 530 Please login with USER and PASS KERBEROS V4 rejected as an authentication type Name localhost root anonymous 331 Please specify the password Password 230 Login successful Remote system type is UNIX Using binary mode to transfer files ftp ls 227 Entering Passive Mode 127 0 0 1 204 140 150 Here comes the directory listing drwxr xr x 2 0 0 4096 Jan 17 2007 pub 226 Directory send OK ftp cd pub 250 Directory successfully changed ftp ls 227 Entering Passive Mode 127 0 0 1 25 100 150 Here comes the directory listing rw rw rw 1 0 0 34 Sep 11 07 48 hello txt 226 Directory send OK ftp get hello txt local hello txt remote hello txt 227 Entering Passive Mode 127 0 0 1 181 217 150 Opening BINARY mode data connection for hello txt 34 bytes 226 File send OK 34 bytes received in 0 0017 seconds 19 Kbytes s ftp ls bridge txt hello txt webalizer conf ftp put webalizer conf local webalizer conf remote webalizer conf 227 Entering Passive Mode 127 0 0 1 147 155 550 Permission denied ftp mkdir test 550 Permission denied 下面对以上测试结果做几点说明 Name localhost root anonymous 表示用匿名账号登录 ftp ls 列出匿名账号在 FTP 服务器上的目录 ftp cd pub 表示更改目录 进入 pub 文件夹 ftp get hello txt 用匿名账号下载 pub 文件夹中的 hello txt 文件 ftp ls bridge txt hello txt webalizer conf 显示刚才下载的文件是否已下载到本地 ftp put webalizer conf 匿名账号上传 webalizer conf 文件失败 不允许匿名账号上传文件 ftp mkdir test 匿名账号创建文件夹失败 不允许匿名账号建立文件夹 2 允许匿名账号上传文件 允许匿名账号上传文件 若要允许匿名账号上传文件 需要对 etc vsftpd vsftpd conf 文件做如下修改 anon upload enable YES anon mkdir write enable YES 即把文件中 anon upload enable YES 和 anon mkdir write enable YES 前的 去 掉 无须修改其他配置 所谓能上传文件 也就是具有在 FTP 服务器的本地目录中新建文 件和文件夹的功能 为了测试上传文件功能 可以先在 var ftp 目录中建立一个新目录 test 并设置该文件夹具有写权限 创建新目录 test 如图 11 4 所示 修改 test 目录的权限 在 test 上单击鼠标右键 并在弹出的快捷菜单中选择 属性 命令 打开如图 11 5 所示的 test 属性 对话框 选择 权限 选项卡 设置相应 权限 将 所有者 设置为 ftp FTP User 群组 设置为 ftp 并设 置相应的 文件夹访问 文件访问 和 执行 权限 图 11 4 新建 test 目录 图 11 5 test 属性 对话 框 重启 Vsftpd 服务 测试的结果如下 ftp localhost Connected to 220 vsFTPd 2 0 5 530 Please login with USER and PASS 530 Please login with USER and PASS KERBEROS V4 rejected as an authentication type Name localhost root anonymous 331 Please specify the password Password 230 Login successful Remote system type is UNIX Using binary mode to transfer files ftp ls 227 Entering Passive Mode 127 0 0 1 68 56 150 Here comes the directory listing drwxr xr x 2 0 0 4096 Sep 11 07 48 pub drwxr xr x 2 14 50 4096 Sep 11 08 09 test 226 Directory send OK ftp cd test 250 Directory successfully changed ftp mkdir incoming 257 test incoming created ftp ls 227 Entering Passive Mode 127 0 0 1 107 221 150 Here comes the directory listing drwx 2 14 50 4096 Sep 11 08 19 incoming 226 Directory send OK ftp ls 1 txt bridge txt hello txt webalizer conf ftp put 1 txt local 1 txt remote 1 txt 227 Entering Passive Mode 127 0 0 1 45 47 150 Ok to send data 226 File receive OK 361 bytes sent in 0 0018 seconds 2e 02 Kbytes s ftp ls 227 Entering Passive Mode 127 0 0 1 231 175 150 Here comes the directory listing drwx 2 14 50 4096 Sep 11 08 19 incoming rw 1 14 50 361 Sep 11 08 24 1 txt 226 Directory send OK ftp 下面对以上测试结果做几点说明 drwxr xr x 2 14 50 4096 Sep 11 08 09 test ls 命令后看到前面在 pub 目录下创建的 test 目录 ftp cd test 更改当前目录 进入 test 目录下 ftp mkdir incoming 257 test incoming created 在 test 目录下创建 incoming 目录成功 ftp put 1 txt 将 1 txt 文件上传到 test 目录中 rw 1 14 50 361 Sep 11 08 24 1 txt ls 命令后看到 1 txt 文件上传成功 3 仅允许匿名用户访问 仅允许匿名用户访问 所谓仅允许匿名用户访问 也就是指需要限制本地账号访问 因此需要对 etc vsftpd vsftpd conf 文件做如下修改 local enable YES write enable YES 即在文件中 local enable YES 和 write enable YES 的前面加上 无须修改其他配 置 对此的测试结果如下 ftp localhost Connected to 220 vsFTPd 2 0 5 530 Please login with USER and PASS 530 Please login with USER and PASS KERBEROS V4 rejected as an authentication type Name localhost root anonymous 331 Please specify the password Password 230 Login successful Remote system type is UNIX Using binary mode to transfer files ftp cd test 250 Directory successfully changed ftp bye 221 Goodbye ftp localhost Connected to 220 vsFTPd 2 0 5 530 Please login with USER and PASS 530 Please login with USER and PASS KERBEROS V4 rejected as an authentication type Name localhost root Kelly 530 This FTP server is anonymous only Login failed ftp user teacher 530 This FTP server is anonymous only Login failed ftp user root 530 This FTP server is anonymous only Login failed 从测试结果中可以看到 除了 anonymous 账号可以正常登录外 其他本地账号登录均 失败 服务器提示 530 This FTP server is anonymous only 即服务器仅允许匿名账号登 录 4 设置欢迎信息 设置欢迎信息 常用的欢迎信息包括两种 一种是在登录 FTP 服务器时显示的欢迎信息 另一种是在更改目录时显示的欢迎信息 欢迎信息的使用 能够让用户在访问 FTP 服务器时感觉到更友好 更亲切 设置登录 FTP 服务器时显示的欢迎信息 首先对 etc vsftpd vsftpd conf 文件做如下修改 ftpd banner Welcome to blah FTP service 重启 Vsftpd 服务后 测试结果如下 ftp localhost Connected to 220 Welcome to blah FTP service 530 Please login with USER and PASS 530 Please login with USER and PASS KERBEROS V4 rejected as an authentication type Name localhost root anonymous 331 Please specify the password Password 230 Login successful Remote system type is UNIX Using binary mode to transfer files 从测试结果中可以看到 在登录 FTP 服务器时 多了一行显示信息 220 Welcome to blah FTP service Welcome to blah FTP service 即在前面为服务器设置的欢迎信息 用户可以根据需要对此欢迎信息进行修改 设置更改目录时显示的欢迎信息 在需要设置更改目录欢迎信息的目录下 创建 message 文件 例如 在 ftp test 目录下 新建 message 文件 写入一行文字 You are welcome 保存后关闭 如图 11 6 所示 图 11 6 编辑 message 文件内容 测试的结果如下 ftp localhost Connected to 220 Welcome to blah FTP service 530 Please login with USER and PASS 530 Please login with USER and PASS KERBEROS V4 rejected as an authentication type Name localhost root anonymous 331 Please specify the password Password 230 Login successful Remote system type is UNIX Using binary mode to transfer files ftp ls 227 Entering Passive Mode 127 0 0 1 219 233 150 Here comes the directory listing drwxr xr x 2 0 0 4096 Sep 11 07 48 pub drwxr xr x 3 14 50 4096 Sep 11 08 40 test 226 Directory send OK ftp cd test 250 You are welcome 250 Directory successfully changed 可以看到 当进入 test 目录后 出现 250 You are welcome 这一行欢迎文字 用户 可以根据需要修改 message 文件中的内容 以显示不同的欢迎信息 5 最大传输速率 最大传输速率 设置最大传输速率需要对 etc vsftpd vsftpd conf 文件进行修改 例如 设置匿名用户的最大传输速率为 20Kbps 应添加如下语句 anon max rate 20000 再如 设置本地账号最大传输率为 1Mbps 应添加如下语句 local max rate 6 服务器最大并发数和用户最大线程数 服务器最大并发数和用户最大线程数 在 etc vsftpd vsftpd conf 文件中添加如下语句 max clients 99 max per ip 5 即可设置服务器允许的最大并发数为 99 而每个用户同一时段的最大并发线程数为 5 7 禁止某些 禁止某些 IP 段的主机匿名访问服务器段的主机匿名访问服务器 如果希望限制某些主机对 FTP 服务器的匿名访问 可以采用以下方法 确认配置文件 etc vsftpd vsftpd conf 中有如下语句 tcp wrappers YES 该语句表明服务器使用 tcp wrappers 作为主机访问控制方式 编辑 etc hosts allow 文件 增加两行命令 hosts allow This file describes the names of the hosts which are allowed to use the local INET services as decided by the usr sbin tcpd server vsftpd 192 168 57 1 DENY vsftpd 192 168 57 9 DENY 表明限制 IP 为 192 168 57 1 和 192 168 57 9 的主机访问 IP 为 192 168 57 2 的 FTP 服务器 在主机 192 168 57 1 上测试的结果如下 Microsoft Windows XP 版本 5 1 2600 C 版权所有 1985 2001 Microsoft Corp C Documents and Settings Administrator cd C ping 192 168 57 2 Pinging 192 168 57 2 with 32 bytes of data Reply from 192 168 57 2 bytes 32 time 1ms TTL 64 Reply from 192 168 57 2 bytes 32 time 1ms TTL 64 Reply from 192 168 57 2 bytes 32 time 24ms TTL 64 Reply from 192 168 57 2 bytes 32 timeftp 192 168 57 2 Connected to 192 168 57 2 421 Service not available Connection closed by remote host 使用 ping 命令时可以看到 FTP 服务器 192 168 57 2 是可以连通的 然而 通过 ftp 命 令对其进行访问时则由于 192 168 57 1 被设置为限制访问 IP 因而无法连接 FTP 服务器 8 用 用 ASCII 方式传送数据方式传送数据 大多数 FTP 服务器都选择用 ASCII 方式传输数据 仅需要修改配置文件 etc vsftpd vsftpd conf 就能够实现用 ASCII 方式传送数据 ascii upload enable YES ascii download enable YES 以上语句表明允许使用 ASCII 方式上传和下载文件 9 设置数据传输中断间隔时间 设置数据传输中断间隔时间 修改配置文件 etc vsftpd vsftpd conf 中的相关语句如下 idle session timeout 600 该语句表示空闲的用户会话中断时间为 600 秒 也就是当数据传输结束后 用户连接 FTP 服务器的时间不应超过 600 秒 可以根据实际情况对该值进行修改 data connection timeout 120 该语句表示数据连接超时时间为 120 秒 也可以根据实际情况对其进行修改 11 3 4 真实账号设置真实账号设置 对真实账号访问 FTP 服务器的设置 主要也是修改配置文件 etc vsftpd vsftpd conf 在前面匿名账号设置中提到的一些配置 在真实账号的 设置中也是同样可用的 因此不再赘述 此处主要说明的是与真实账号有关的 访问控制设置 在进行设置和测试前 应新建几个用户 选择 系统 管理 中的 用 户和群组 选项 打开 用户管理者 对话框 新建名为 user1 user2 和 user3 的三个用户 然后将 user1 添加至 etc vsftpd ftpusers 文件中 将 user2 添加至 etc vsftpd user list 文件中 而 user3 则不用添加到这两个文件中 1 使用用户列表进行访问控制 使用用户列表进行访问控制 ftpusers 文件中的用户不可以访问 FTP 服务器 设置语句如下 userlist enable NO userlist enable 选项的默认值为 NO 当 etc vsftpd vsftpd conf 文件中出现该语句时 ftpusers 文件中的用户将被禁止访问 FTP 服务器 因此 ftpusers 文件又被称为 禁止使用 Vsftpd 的用户列表文件 测试的结果如下 ftp localhost Connected to localhost localdomain 220 vsFTPd 2 0 5 530 Please login with USER and PASS 530 Please login with USER and PASS KERBEROS V4 rejected as an authentication type Name localhost root user1 331 Please specify the password Password 530 Login incorrect Login failed ftp bye 221 Goodbye ftp localhost Connected to localhost localdomain 220 vsFTPd 2 0 5 530 Please login with USER and PASS 530 Please login with USER and PASS KERBEROS V4 rejected as an authentication type Name localhost root user2 331 Please specify the password Password 230 Login successful Remote system type is UNIX Using binary mode to transfer files ftp bye 221 Goodbye ftp localhost Connected to localhost localdomain 220 vsFTPd 2 0 5 530 Please login with USER and PASS 530 Please login with USER and PASS KERBEROS V4 rejected as an authentication type Name localhost root user3 331 Please specify the password Password 230 Login successful Remote system type is UNIX Using binary mode to transfer files ftp 从结果中可以看到 user1 不能访问FTP 服务器 而user2 和 user3 均可以正常登录FTP 服务 器 仅允许 user list 中的用户访问服务器 设置语句如下 userlist enable YES userlist deny NO 当 userlist enable 设置为 YES 而 userlist deny 设置为 NO 时 FTP 服务器仅允许 user list 中的用户访问 测试结果如下 ftp localhost Connected to localhost localdomain 220 vsFTPd 2 0 5 530 Please login with USER and PASS 530 Please login with USER and PASS KERBEROS V4 rejected as an authentication type Name localhost root user1 530 Permission denied Login failed ftp bye 221 Goodbye ftp localhost Connected to localhost localdomain 220 vsFTPd 2 0 5 530 Please login with USER and PASS 530 Please login with USER and PASS KERBEROS V4 rejected as an authentication type Name localhost root user2 331 Please specify the password Password 230 Login successful Remote system type is UNIX Using binary mode to transfer files ftp bye 221 Goodbye ftp localhost Connected to localhost localdomain 220 vsFTPd 2 0 5 530 Please login with USER and PASS 530 Please login with USER and PASS KERBEROS V4 rejected as an authentication type Name localhost root user3 530 Permission denied Login failed ftp 可以看到 user2 位于 user list 文件中 因此 只有 user2 能够正常登录 FTP 服务器 user1 和 user3 均不能访问 ftpusers 和 user list 文件中的用户均不能访问 FTP 服务器 设置语句如下 userlist enable YES userlist deny YES 测试结果如下 ftp localhost Connected to localhost localdomain 220 vsFTPd 2 0 5 530 Please login with USER and PASS 530 Please login with USER and PASS KERBEROS V4 rejected as an authentication type Name localhost root user1 331 Please specify the password Password 530 Login incorrect Login failed ftp bye 221 Goodbye ftp localhost Connected to localhost localdomain 220 vsFTPd 2 0 5 530 Please login with USER and PASS 530 Please login with USER and PASS KERBEROS V4 rejected as an authentication type Name localhost root user2 530 Permission denied Login failed ftp bye 221 Goodbye ftp localhost Connected to localhost localdomain 220 vsFTPd 2 0 5 530 Please login with USER and PASS 530 Please login with USER and PASS KERBEROS V4 rejected as an authentication type Name localhost root user3 331 Please specify the password Password 230 Login successful Remote system type is UNIX Using binary mode to transfer files ftp 从测试结果可以看出 user1 和 user2 均不能登录 FTP 服务器 只有 user3 可以正常登录 而 user1 和 user2 在登录时的情况也是不同的 位于 ftpusers 文件中的 user1 登录时出现了要求 输入密码的提示信息 输入密码后服务器响应为访问被拒绝 而位于 user list 中的 user2 在登 录时直接被拒绝 没有要求输入密码的提示信息 从上述测试中可以看出 Vsftpd 服务器可以通过在 etc vsftpd vsftpd conf 文 件中设置 userlist enable 和 userlist deny 的值实现对不同用户的访问控制 2 设置用户组 设置用户组 通过用户组方式访问 FTP 服务器 能够进一步增强 FTP 服务器的安全性 为完成用户组的设置并进行测试 首先在 home 目录下创建 try 目录 作为 群组用户的主目录 可以通过选择 系统 管理 中的 用户和群组 选项 打开 用户管理器 对话框来设置用户和群组 选择 添加组群 按钮 在 创建新组群 对话框中创建群组 try 即可 如图 11 7 所示 完成创建群组的操作后 单击 添加用户 按钮 在如图 11 8 所示的 创 建新用户 对话框中 分别创建 try1 try2 和 try3 三个用户 图 11 7 创建群组 try 图 11 8 创建新用户 对话框 需要注意的是 在创建新用户时 不要选中对话框中 创建主目录 和 为该用户创建私人组群 复选框 创建完成后 双击用户名打开如图 11 9 所 示的 用户属性 对话框 分别设置三个用户的 用户数据 和 组群 选项 卡 在 用户数据 选项卡中 将三个用户的 主目录 设置为 home try 在如图 11 10 所示的 组群 选项卡中 将三个用户加入到 try 组群中 即选中 try 组群前的复选框 最后 还需要对 home try 目录的属性进行设置 在该目录的 try 属性 对 话框中 选择 权限 选项卡 将 try 目录的所有者设置为用户 try1 try1 对目录具有读 写和执行的权限 将 try 目录的群组设置为群组 try 并将群组 try 对该目录的权限设置为读和执行 如图 11 11 所示 图 11 9 用户属性 对话框 图 11 10 组群 选项卡 图 11 11 权限 选项卡设置 完成设置后 群组 try 中三个用户对 home try 文件夹拥有的权限如下 try1 读 写 执行 try2 try3 读 执行 接下来通过命令测试群组方式访问 FTP 服务器的结果 具有读 写和执行权限的目录所有 者 能够实现浏览 下载 上传及创建目录和文件的操作 而在群组中仅具有读和执行权限的 用户 只能完成浏览和下载操作 测试结果如下 ftp localhost Connected to 220 Welcome to blah FTP service 530 Please login with USER and PASS 530 Please login with USER and PASS KERBEROS V4 rejected as an authentication type Name localhost root try1 331 Please specify the password Password 230 Login successful Remote system type is UNIX Using binary mode to transfer files ftp ls 227 Entering Passive Mode 127 0 0 1 215 117 150 Here comes the directory listing 226 Directory send OK ftp mkdir new 257 new created ftp ls 227 Entering Passive Mode 127 0 0 1 163 211 150 Here comes the directory listing drwxr xr x 2 507 100 4096 Sep 11 11 12 new 226 Directory send OK ftp ls hello txt ftp put hello txt local hello txt remote hello txt 227 Entering Passive Mode 127 0 0 1 176 127 150 Ok to send data 226 File receive OK 367 bytes sent in 0 00029 seconds 1 2e 03 Kbytes s ftp ls 227 Entering Passive Mode 127 0 0 1 210 143 150 Here comes the directory listing drwxr xr x 2 507 100 4096 Sep 11 11 12 new rw r r 1 507 100 367 Sep 11 11 13 hello txt 226 Directory send OK ftp bye 221 Goodbye ftp localhost Connected to 220 Welcome to blah FTP service 530 Please login with USER and PASS 530 Please login with USER and PASS KERBEROS V4 rejected as an authentication type Name localhost root try2 331 Please specify the password Password 230 Login successful Remote system type is UNIX Using binary mode to transfer files ftp ls 227 Entering Passive Mode 127 0 0 1 84 106 150 Here comes the directory listing drwxr xr x 2 507 100 4096 Sep 11 11 12 new rw r r 1 507 100 367 Sep 11 11 13 hello txt 226 Directory send OK ftp mkdir new2 550 Create directory operation failed ftp put aaa txt local aaa txt remote aaa txt 227 Entering Passive Mode 127 0 0 1 227 36 553 Could not create file ftp quit 221 Goodbye 从结果中可以看到 try1 用户登录 FTP 服务器时 成功地创建了一个 new 目录 并上 传了文件 hello txt

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论