免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 4744 | 回复: 14
打印 上一主题 下一主题

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

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-01-21 16:21 |只看该作者 |正序浏览
不知道做了什么更改我的root用户突然不能ftp登陆了,其他一切正常,其他用户也可以ftp登陆,我看过的ftpusers文件了,我已经注释掉root帐户了,为什么还是不能登陆,还有什么其他原因吗?正在连接到 172.31.24.251, 端口 21 (#1)
已经连接. 正在等待响应.
220 myhost.myhost.com FTP server (SunOS 5. ready.
USER root
331 Password required for root.
PASS xxxxxx
530 Login incorrect.
QUIT
连接尝试失败。 正在等待重试...

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

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

在ftpuses文件中注释了,shells文件也加好了,及其也重启了还是不能用root用户ftp登录。郁闷

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

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

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

论坛徽章:
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
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
11 [报告]
发表于 2003-01-21 16:45 |只看该作者

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

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

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

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

哦?有这个原因?为什么?

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

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

你的ftp安装的目录下的/etc下的group文件查看了没有

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

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

搞定了,谢谢tigerbrother,昨晚上建了一个shells文件,里面没有加入root的shell。

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

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

[quote]原帖由 \"fly796\"]shell? 没有问题的我正在用着呢[/quote 发表:


你的root shell 在/etc/shells文件里有吗?
  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP