• 软件测试技术
  • 软件测试博客
  • 软件测试视频
  • 开源软件测试技术
  • 软件测试论坛
  • 软件测试沙龙
  • 软件测试资料下载
  • 软件测试杂志
  • 软件测试人才招聘
    暂时没有公告

字号: | 推荐给好友 上一篇 | 下一篇

telnet能上 ftp不能上

发布: 2007-6-08 22:43 | 作者: seanhe | 来源: | 查看: 20次 | 进入软件测试论坛讨论

领测软件测试网
帮我看看好吧
我的系统是solaris 7 ,一个普通用户能te.net登录 ,但不能ftp登录(提示密码错误),密码是没有错的(多人多次测试过),怎么才能让此用户正常登录ftp呢,恳请指点迷津。谢了

 laoxia 回复于:2003-07-14 10:32:33
DESCRIPTION: 

When trying to FTP to a Solaris system, the login fails even though the password supplied is correct. But telnet and rlogin programs work fine. 

SOLUTION: 

If FTP fails during login authentication even though the password was delivered correctly, the following things need to be checked: 


Check the /etc/ftpusers file. 
The Solaris 8 OE has included a new security mechanism for ftp login by means of a file ftpusers in the /etc directory, which is created by default. This file includes all users for whom ftp login privileges are disallowed. 

The root user is included in /etc/ftpusers as a security measure 
since the default policy is to disallow remote logins for this identity. This policy is also set in the the default value of the CONSOLE entry in the /etc/default/login file. 

The ftp access as root user can be enabled by deleting the root entry in the /etc/ftpusers file. 

If you allow root login privileges by deleting the root entry in the /etc/ftpusers file, you should also modify the security policy in the /etc/default/login file to reflect the site security policy for remote login access by root. 

Users should also be aware of the security implications of enabling ftp access via root. 

Refer to man pages login(1) and ftpusers(4) for more details. 


Check /etc/shells file. 
FTP login access will be denied if the user's shell, specified in the /etc/passwd file, is not listed in /etc/shells. If /etc/shells does not exist, then the user's shell must be in the list in Step 3. 


The user's shell must be one of the shells listed by the standard C library call getusershell(3C). 
If /etc/shells does not exist, then getusershell(3C) returns the following list of standard shells in the Solaris 8 OE. More shells have been added in this version. 

     /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              /usr/bin/sh 
     /usr/bin/tcsh              /usr/bin/zsh 

If the user is using a non-standard shell, there must be an entry for the shell in the file /etc/shells. 


The user's entry in /etc/passwd and /etc/shadow files or the NIS/NIS+ database must be syntactically correct. 
Make sure no errors or warnings are thrown by pwck and pwconv commands. 

Refer to the man pages for getusershell(3C), pwconv(1M), and pwck(1M) for more information and their exit/return status.

 卡兰迪亚 回复于:2003-07-14 10:40:56
thanks
I do it ok.

延伸阅读

文章来源于领测软件测试网 https://www.ltesting.net/


关于领测软件测试网 | 领测软件测试网合作伙伴 | 广告服务 | 投稿指南 | 联系我们 | 网站地图 | 友情链接
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备10010545号-5
技术支持和业务联系:info@testage.com.cn 电话:010-51297073

软件测试 | 领测国际ISTQBISTQB官网TMMiTMMi认证国际软件测试工程师认证领测软件测试网