免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: fly796
打印 上一主题 下一主题

我的root用户为什么不能ftp登陆了呢?why? [复制链接]

论坛徽章:
0
11 [报告]
发表于 2003-01-21 16:45 |只看该作者

我的root用户为什么不能ftp登陆了呢?why?

tigerbrother 能不能讲一下为什么吗? 原来的/etc/shells我是没有建立的
shells文件到底有什么用,是不是限制用户shell不在这个文件里面的,都不能登陆,这个对ftp也有作用吗?

论坛徽章:
0
12 [报告]
发表于 2003-01-21 17:11 |只看该作者

我的root用户为什么不能ftp登陆了呢?why?

当/etc/ftpusers文件禁止某个用户ftp连接的时候,可以建立一个/etc/shells文件来允许只有那些运行了在文件中定义了的shell的用户进行ftp连接。如果某个shell不在这个文件中,那么任何用户运行了这个未定义的 shell都将不能允许利用ftp连接的系统。
解决办法:1.删除/etc/shells;
          2.在/etc/shells文件中加入下行:
            /sbin/sh
                  /bin/sh
                  /bin/ksh
                  /bin/csh

论坛徽章:
0
13 [报告]
发表于 2003-01-21 17:51 |只看该作者

我的root用户为什么不能ftp登陆了呢?why?

/etc/shells lists shells on system.

The shells file contains a list of the shells on the system. Applications use this file to determine whether a shell is valid. For each shell a single line should be present, consisting of the shell\'s path, relative to root.

The following default shells are used by utilities: /bin/bash, /bin/csh, /bin/jsh, /bin/ksh, /bin/pfcsh, /bin/pfksh, /bin/pfsh, /bin/sh, /bin/tcsh, /bin/zsh, /sbin/jsh, /sbin/sh, /usr/bin/bash, /usr/bin/csh, /usr/bin/jsh, /usr/bin/ksh, /usr/bin/pfcsh, /usr/bin/pfksh, /usr/bin/pfsh, and /usr/bin/sh, /usr/bin/tcsh, /usr/bin/zsh.

论坛徽章:
0
14 [报告]
发表于 2003-01-21 21:32 |只看该作者

我的root用户为什么不能ftp登陆了呢?why?

[quote]原帖由 \"rimrock\"]不会自动换行?[/quote 发表:
????

论坛徽章:
0
15 [报告]
发表于 2003-12-09 10:46 |只看该作者

我的root用户为什么不能ftp登陆了呢?why?

在ftpuses文件中注释了,shells文件也加好了,及其也重启了还是不能用root用户ftp登录。郁闷
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP